parse-options: no --[no-]no-...
commit2a409a1d1250c8a9fcac7beaa58ae80881dda2dc
authorRené Scharfe <l.s.r@web.de>
Sat, 5 Aug 2023 14:44:45 +0000 (5 16:44 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Aug 2023 00:16:51 +0000 (6 17:16 -0700)
treea01a8f2e2bdb13daf66b69c0fb97cc345864f200
parent652a6b15bc1cd0f837bc969e87fd31f3e88413f6
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>
parse-options.c
t/t0040-parse-options.sh
t/t1502/optionspec-neg.help