]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/help.c
builtin/help.c: split "-a" processing into two
authorPhilip Oakley <philipoakley@iee.org>
Tue, 2 Apr 2013 22:39:49 +0000 (23:39 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Apr 2013 00:58:24 +0000 (17:58 -0700)
commit15f7d4943807a50e01d2fd85bcdbd44361808dd2
treec2d05f3a7eeced6d22074074f209ccbdc7424678
parent961c5129d53554d4d71003899fab8dda846d7c2a
builtin/help.c: split "-a" processing into two

"help -a" (help all) gives the list of available commands and then
further gives hints on the use of "git help".   Separate these into
two steps, because we will add "help -g" (help guides) that want to
also show the overall hints after it is done.

While at it, change the definition of the "-a" option to use OPT_BOOL,
not the deprecated OPT_BOOLEAN.  We do not behave differently when
the user gives the "-a" option multiple times, e.g. "git help -a -a".

Signed-off-by: Philip Oakley <philipoakley@iee.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/help.c