From: Christian Couder Date: Wed, 1 Jul 2020 10:16:18 +0000 (+0200) Subject: cat-file: add missing [=] to usage/synopsis X-Git-Tag: v2.28.0-rc0~9^2 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fgit.git;a=commitdiff_plain;h=0172f7834a31ae7cb9873feaaaa63939352fa3ae cat-file: add missing [=] to usage/synopsis When displaying cat-file usage, the fact that a can be specified is only visible when lookling at the --batch and --batch-check options which are shown like this: --batch[=] show info and content of objects fed from the standard input --batch-check[=] show info about objects fed from the standard input It seems more coherent and improves discovery to also show it on the usage line. In the documentation the DESCRIPTION tells us that "The output format can be overridden using the optional argument", but we can't see the argument in the SYNOPSIS above the description which is confusing. Signed-off-by: Christian Couder Acked-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-cat-file.txt b/Documentation/git-cat-file.txt index 8eca671b82..8e192d87db 100644 --- a/Documentation/git-cat-file.txt +++ b/Documentation/git-cat-file.txt @@ -10,7 +10,7 @@ SYNOPSIS -------- [verse] 'git cat-file' (-t [--allow-unknown-type]| -s [--allow-unknown-type]| -e | -p | | --textconv | --filters ) [--path=] -'git cat-file' (--batch | --batch-check) [ --textconv | --filters ] [--follow-symlinks] +'git cat-file' (--batch[=] | --batch-check[=]) [ --textconv | --filters ] [--follow-symlinks] DESCRIPTION ----------- diff --git a/builtin/cat-file.c b/builtin/cat-file.c index 272f9fc6d7..4cb1613047 100644 --- a/builtin/cat-file.c +++ b/builtin/cat-file.c @@ -593,7 +593,7 @@ static int batch_objects(struct batch_options *opt) static const char * const cat_file_usage[] = { N_("git cat-file (-t [--allow-unknown-type] | -s [--allow-unknown-type] | -e | -p | | --textconv | --filters) [--path=] "), - N_("git cat-file (--batch | --batch-check) [--follow-symlinks] [--textconv | --filters]"), + N_("git cat-file (--batch[=] | --batch-check[=]) [--follow-symlinks] [--textconv | --filters]"), NULL };