diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-02-21 20:38:48 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-02-23 13:41:36 -0800 |
commit | d7f817d376134ec09e6804cdb6e3d062e3308eb9 (patch) | |
tree | ef73b103cf2302827b24da8c5022c23d63b438b1 /pack-bitmap.c | |
parent | help.c: split up list_all_cmds_help() function (diff) | |
download | tgif-d7f817d376134ec09e6804cdb6e3d062e3308eb9.tar.xz |
help: note the option name on option incompatibility
Change the errors added in d35d03cf93e (help: simplify by moving to
OPT_CMDMODE(), 2021-09-22) to quote the offending option at the user
when invoked as e.g.:
git help --guides garbage
Now instead of:
fatal: this option doesn't take any other arguments
We'll emit:
fatal: the '--guides' option doesn't take any non-option arguments
Let's also rename the function, as it will be extended to do other
checks that aren't "no extra argc" in a subsequent commit.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-bitmap.c')
0 files changed, 0 insertions, 0 deletions