mirror of
https://github.com/git/git
synced 2024-08-28 20:20:07 +00:00
![René Scharfe](/assets/img/avatar_default.png)
Avoid showing an optional "no-" for options that already start with a "no-" in the short help, as that double negation is confusing. Document the opposite variant on its own line with a generated help text instead, unless it's defined and documented explicitly already. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
13 lines
318 B
Plaintext
13 lines
318 B
Plaintext
cat <<\EOF
|
|
usage: some-command [options] <args>...
|
|
|
|
some-command does foo and bar!
|
|
|
|
--[no-]foo can be negated
|
|
--no-bar can be positivated
|
|
--bar opposite of --no-bar
|
|
--positive-only cannot be negated
|
|
--no-negative cannot be positivated
|
|
|
|
EOF
|