Re: [PATCH] show-branch: don't use LASTARG_DEFAULT with OPTARG
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 8, 2009, 21:56 UTC
- Message-ID
- <7vd49ewfsi.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1244417955-21226-1-git-send-email-bebarino@gmail.com>
Stephen Boyd <bebarino@gmail.com> writes:
Show 5 quoted lines
> 5734365 (show-branch: migrate to parse-options API 2009-05-21) > incorrectly set the --more option's flags to be > PARSE_OPT_LASTARG_DEFAULT and PARSE_OPT_OPTARG. These two flags > shouldn't be used together. An option taking a default should just set > the default value desired and parse options will take care of the rest.
Thanks. Perhaps as a follow-up patch the runtime can check and barf when parse_options() is called and finds this combination?