From 0172f7834a31ae7cb9873feaaaa63939352fa3ae Mon Sep 17 00:00:00 2001 From: Christian Couder Date: Wed, 1 Jul 2020 12:16:18 +0200 Subject: 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 --- builtin/cat-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtin/cat-file.c') 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 }; -- cgit v1.2.1