From: Ævar Arnfjörð Bjarmason Date: Fri, 30 Sep 2022 18:07:42 GMT Subject: [PATCH v3 19/36] doc txt & -h consistency: add or fix optional "--" syntax Message-ID: In-Reply-To: Add the "[--]" for those cases where the *.txt and -h were inconsistent, or where we incorrectly stated in one but not the other that the "--" was mandatory. Signed-off-by: Ævar Arnfjörð Bjarmason --- builtin/for-each-repo.c | 2 +- builtin/rev-list.c | 2 +- builtin/verify-pack.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builtin/for-each-repo.c b/builtin/for-each-repo.c index c6379b783c8..d45d873f579 100644 --- a/builtin/for-each-repo.c +++ b/builtin/for-each-repo.c @@ -6,7 +6,7 @@ #include "string-list.h" static const char * const for_each_repo_usage[] = { - N_("git for-each-repo --config= "), + N_("git for-each-repo --config= [--] "), NULL }; diff --git a/builtin/rev-list.c b/builtin/rev-list.c index ada68a4af5e..3cc8aad52ed 100644 --- a/builtin/rev-list.c +++ b/builtin/rev-list.c @@ -20,7 +20,7 @@ #include "packfile.h" static const char rev_list_usage[] = -"git rev-list [] ... [-- ...]\n" +"git rev-list [] ... [[--] ...]\n" "\n" " limiting output:\n" " --max-count=\n" diff --git a/builtin/verify-pack.c b/builtin/verify-pack.c index db9ac5c4606..27d6f75fd8a 100644 --- a/builtin/verify-pack.c +++ b/builtin/verify-pack.c @@ -56,7 +56,7 @@ static int verify_one_pack(const char *path, unsigned int flags, const char *has } static const char * const verify_pack_usage[] = { - N_("git verify-pack [-v | --verbose] [-s | --stat-only] .idx..."), + N_("git verify-pack [-v | --verbose] [-s | --stat-only] [--] .idx..."), NULL }; -- 2.38.0.rc2.935.g6b421ae1592