author | Stephen Boyd <bebarino@gmail.com> | |
Thu, 4 Jun 2009 23:43:56 +0000 (16:43 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 6 Jun 2009 20:25:01 +0000 (13:25 -0700) | ||
commit | e3a0ca878457ecc70d0065802fcb0c6875c6b671 | |
tree | 4737068ddabb9b0b01dffa09985dc8045fb39570 | tree | snapshot |
parent | 6096d7598058d920485d206477f4383ba1a862cb | commit | diff |
parse-options: make OPT_INTEGER's argh explicit
OPTION_INTEGER hardcodes its argh member to be "n", but the decision is
hidden deep in usage_with_options_internal(). Make "n" the default argh
for the OPT_INTEGER macro while leaving it undecided for the OPTION_INTEGER
enum.
This makes it less surprising to users that argh is "n" when using the
OPT_INTEGER macro.
Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Reviewed-by: René Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
OPTION_INTEGER hardcodes its argh member to be "n", but the decision is
hidden deep in usage_with_options_internal(). Make "n" the default argh
for the OPT_INTEGER macro while leaving it undecided for the OPTION_INTEGER
enum.
This makes it less surprising to users that argh is "n" when using the
OPT_INTEGER macro.
Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Reviewed-by: René Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-tag.c | diff | blob | history | |
parse-options.c | diff | blob | history | |
parse-options.h | diff | blob | history |