Skip to content

Commit 7ff1402

Browse files
committed
Merge branch 'ps/grep-help-all-callback-arg'
Code clean-up. * ps/grep-help-all-callback-arg: grep: correctly initialize help-all option
2 parents 9718c7c + 5dcd1b1 commit 7ff1402

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/grep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ int cmd_grep(int argc, const char **argv, const char *prefix)
738738
PARSE_OPT_OPTARG, NULL, (intptr_t)default_pager },
739739
OPT_BOOL(0, "ext-grep", &external_grep_allowed__ignored,
740740
N_("allow calling of grep(1) (ignored by this build)")),
741-
{ OPTION_CALLBACK, 0, "help-all", &options, NULL, N_("show usage"),
741+
{ OPTION_CALLBACK, 0, "help-all", NULL, NULL, N_("show usage"),
742742
PARSE_OPT_HIDDEN | PARSE_OPT_NOARG, help_callback },
743743
OPT_END()
744744
};

0 commit comments

Comments
 (0)