mirror of
https://github.com/git/git
synced 2024-11-05 01:58:18 +00:00
2a409a1d12
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>
12 lines
318 B
Text
12 lines
318 B
Text
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
|