Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t/t1502
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2023-08-05 17:44:45 +0300
committerJunio C Hamano <gitster@pobox.com>2023-08-07 03:16:51 +0300
commit2a409a1d1250c8a9fcac7beaa58ae80881dda2dc (patch)
treea01a8f2e2bdb13daf66b69c0fb97cc345864f200 /t/t1502
parent652a6b15bc1cd0f837bc969e87fd31f3e88413f6 (diff)
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>
Diffstat (limited to 't/t1502')
-rw-r--r--t/t1502/optionspec-neg.help3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t1502/optionspec-neg.help b/t/t1502/optionspec-neg.help
index 60ff3cdd00..7a29f8cb03 100644
--- a/t/t1502/optionspec-neg.help
+++ b/t/t1502/optionspec-neg.help
@@ -4,7 +4,8 @@ usage: some-command [options] <args>...
some-command does foo and bar!
--[no-]foo can be negated
- --[no-]no-bar can be positivated
+ --no-bar can be positivated
+ --bar opposite of --no-bar
--positive-only cannot be negated
--no-negative cannot be positivated