]> git.ipfire.org Git - thirdparty/git.git/commit
parse-options: teach "git cmd -h" to show alias as alias
authorJunio C Hamano <gitster@pobox.com>
Mon, 16 Mar 2020 20:22:54 +0000 (13:22 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Mar 2020 21:27:07 +0000 (14:27 -0700)
commit7c280589cffa6f55f6bef0496776334f1e3cdcb5
tree33b308fa00d049ef167ac531d606d994e7c7539d
parent6c85aac65fb455af85745130ce35ddae4678db84
parse-options: teach "git cmd -h" to show alias as alias

There is a long-standing NEEDSWORK comment that complains about
inconsistency between how an aliased option ("git clone --recurse"
which is the only one that currently exists) gives a help text in
a usage-error message vs "git cmd -h").  Get rid of it and then
make sure we say an option is an alias for another, instead of
repeating the same short help text for both, which leads to "they
seem to do the same---is there any subtle difference?" puzzlement
to end-users.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
parse-options.c
t/t0040-parse-options.sh