]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc txt & -h consistency: balance unbalanced "[" and "]"
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 13 Oct 2022 15:39:05 +0000 (17:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 13 Oct 2022 16:32:55 +0000 (09:32 -0700)
Fix a "-h" output syntax issue introduced when "--diagnose" was added
in aac0e8ffeee (builtin/bugreport.c: create '--diagnose' option,
2022-08-12): We need to close the "[" we opened. The
corresponding *.txt change did not have the same issue.

The "help -h" output then had one "]" too many, which is an issue
introduced in b40845293b5 (help: correct the usage string in -h and
documentation, 2021-09-10).

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/bugreport.c
builtin/help.c

index 23170113cc807bd569653778d47659c26762fdbc..bb138161943ba2d8bd23dbe868e9d4c78777b463 100644 (file)
@@ -61,7 +61,7 @@ static void get_populated_hooks(struct strbuf *hook_info, int nongit)
 
 static const char * const bugreport_usage[] = {
        N_("git bugreport [(-o|--output-directory) <file>] [(-s|--suffix) <format>]\n"
-          "              [--diagnose[=<mode>]"),
+          "              [--diagnose[=<mode>]]"),
        NULL
 };
 
index 09ac4289f13065a20e0fb50d08d0a784d3dab8e0..36e3f4116e9acdef6887447b0570f91375f2922c 100644 (file)
@@ -88,7 +88,7 @@ static struct option builtin_help_options[] = {
 };
 
 static const char * const builtin_help_usage[] = {
-       "git help [-a|--all] [--[no-]verbose]] [--[no-]external-commands] [--[no-]aliases]",
+       "git help [-a|--all] [--[no-]verbose] [--[no-]external-commands] [--[no-]aliases]",
        N_("git help [[-i|--info] [-m|--man] [-w|--web]] [<command>|<doc>]"),
        "git help [-g|--guides]",
        "git help [-c|--config]",