summaryrefslogtreecommitdiff
path: root/t/t1306-xdg-files.sh
diff options
context:
space:
mode:
authorLibravatar Ævar Arnfjörð Bjarmason <avarab@gmail.com>2021-12-28 14:28:47 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-12-30 13:05:29 -0800
commitb3fe468075b7f0aa40f7a22a5a50e5e3e5fb2148 (patch)
treedbecf0696bb0f308c6c9c1acfd653f41d22918c3 /t/t1306-xdg-files.sh
parentcat-file: make --batch-all-objects a CMDMODE (diff)
downloadtgif-b3fe468075b7f0aa40f7a22a5a50e5e3e5fb2148.tar.xz
cat-file: fix remaining usage bugs
With the migration of --batch-all-objects to OPT_CMDMODE() in the preceding commit one bug with combining it and other OPT_CMDMODE() options was solved, but we were still left with e.g. --buffer silently being discarded when not in batch mode. Fix all those bugs, and in addition emit errors telling the user specifically what options can't be combined with what other options, before this we'd usually just emit the cryptic usage text and leave the users to work it out by themselves. This change is rather large, because to do so we need to untangle the options processing so that we can not only error out, but emit sensible errors, and e.g. emit errors about options before errors about stray argc elements (as they might become valid if the option were removed). Some of the output changes ("error:" to "fatal:" with usage_msg_opt[f]()), but none of the exit codes change, except in those cases where we silently accepted bad option combinations before, now we'll error out. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1306-xdg-files.sh')
0 files changed, 0 insertions, 0 deletions