add description parameter to OPT__VERBOSE
Allows better help text to be defined than "be verbose". Also make use of the macro in places that already had a different description. No object code changes intended. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
6f10c4103d
commit
fd03881a48
@ -115,7 +115,7 @@ static int opt_parse_m(const struct option *opt, const char *arg, int unset)
|
||||
|
||||
static struct option builtin_commit_options[] = {
|
||||
OPT__QUIET(&quiet),
|
||||
OPT__VERBOSE(&verbose),
|
||||
OPT__VERBOSE(&verbose, "be verbose"),
|
||||
|
||||
OPT_GROUP("Commit message options"),
|
||||
OPT_FILENAME('F', "file", &logfile, "read log from file"),
|
||||
@ -1048,7 +1048,7 @@ int cmd_status(int argc, const char **argv, const char *prefix)
|
||||
int fd;
|
||||
unsigned char sha1[20];
|
||||
static struct option builtin_status_options[] = {
|
||||
OPT__VERBOSE(&verbose),
|
||||
OPT__VERBOSE(&verbose, "be verbose"),
|
||||
OPT_SET_INT('s', "short", &status_format,
|
||||
"show status concisely", STATUS_FORMAT_SHORT),
|
||||
OPT_BOOLEAN('b', "branch", &status_show_branch,
|
||||
|
||||
Reference in New Issue
Block a user