Merge branch 'ps/grep-help-all-callback-arg'
Code clean-up. * ps/grep-help-all-callback-arg: grep: correctly initialize help-all option
This commit is contained in:
commit
7ff140202a
@ -738,7 +738,7 @@ int cmd_grep(int argc, const char **argv, const char *prefix)
|
|||||||
PARSE_OPT_OPTARG, NULL, (intptr_t)default_pager },
|
PARSE_OPT_OPTARG, NULL, (intptr_t)default_pager },
|
||||||
OPT_BOOL(0, "ext-grep", &external_grep_allowed__ignored,
|
OPT_BOOL(0, "ext-grep", &external_grep_allowed__ignored,
|
||||||
N_("allow calling of grep(1) (ignored by this build)")),
|
N_("allow calling of grep(1) (ignored by this build)")),
|
||||||
{ OPTION_CALLBACK, 0, "help-all", &options, NULL, N_("show usage"),
|
{ OPTION_CALLBACK, 0, "help-all", NULL, NULL, N_("show usage"),
|
||||||
PARSE_OPT_HIDDEN | PARSE_OPT_NOARG, help_callback },
|
PARSE_OPT_HIDDEN | PARSE_OPT_NOARG, help_callback },
|
||||||
OPT_END()
|
OPT_END()
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user