doc txt & -h consistency: balance unbalanced "[" and "]"
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>
Ævar Arnfjörð Bjarmason committed
Oct 13, 2022 at 17:39 UTC
8bc6f92486361bffde6f2e7cfb01e9ccb36399a3
2 files changed
+2
-2
builtin/bugreport.c
+1
-1
@@ -61,7 +61,7 @@ static void get_populated_hooks(struct strbuf *hook_info, int nongit)
61
62
static const char * const bugreport_usage[] = {
63
N_("git bugreport [(-o|--output-directory) <file>] [(-s|--suffix) <format>]\n"
64
- " [--diagnose[=<mode>]"),
64
+ " [--diagnose[=<mode>]]"),
65
NULL
66
};
67
builtin/help.c
+1
-1
@@ -88,7 +88,7 @@ static struct option builtin_help_options[] = {
88
};
89
90
static const char * const builtin_help_usage[] = {
91
- "git help [-a|--all] [--[no-]verbose]] [--[no-]external-commands] [--[no-]aliases]",
91
+ "git help [-a|--all] [--[no-]verbose] [--[no-]external-commands] [--[no-]aliases]",
92
N_("git help [[-i|--info] [-m|--man] [-w|--web]] [<command>|<doc>]"),
93
"git help [-g|--guides]",
94
"git help [-c|--config]",