git/t/t1502/optionspec-neg.help
René Scharfe 2a409a1d12 parse-options: no --[no-]no-...
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>
2023-08-06 17:16:51 -07:00

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