Skip to content

Commit 8bc6f92

Browse files
avargitster
authored andcommitted
doc txt & -h consistency: balance unbalanced "[" and "]"
Fix a "-h" output syntax issue introduced when "--diagnose" was added in aac0e8f (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 b408452 (help: correct the usage string in -h and documentation, 2021-09-10). Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent dfc8333 commit 8bc6f92

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

builtin/bugreport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static void get_populated_hooks(struct strbuf *hook_info, int nongit)
6161

6262
static const char * const bugreport_usage[] = {
6363
N_("git bugreport [(-o|--output-directory) <file>] [(-s|--suffix) <format>]\n"
64-
" [--diagnose[=<mode>]"),
64+
" [--diagnose[=<mode>]]"),
6565
NULL
6666
};
6767

builtin/help.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ static struct option builtin_help_options[] = {
8888
};
8989

9090
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]",
9292
N_("git help [[-i|--info] [-m|--man] [-w|--web]] [<command>|<doc>]"),
9393
"git help [-g|--guides]",
9494
"git help [-c|--config]",

0 commit comments

Comments
 (0)