Re: [PATCH 4/5 v4] log: parse detached options like git log --grep foo
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Aug 3, 2010, 19:52 UTC
- Message-ID
- <vpq39uvzd7e.fsf@bauges.imag.fr>
- In-Reply-To
- <7vlj8nipl9.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 8 quoted lines
> But I thought you were suggesting to [...] never take: > > --opt <string> (even when --opt always takes an argument) > > because that would further reduce one source of potential confusion > (i.e. the user needs to remember if --opt always takes an argument or > not). I thought you mentioned that neither parse-options nor GNU tools > take "--prune last",
No, I said the opposite: both do.
> "--color auto" as a good supporting argument for this
"grep --color auto" is refused because the "auto" part is optional. But both "grep --regex foo" and "grep --regexp=foo" are accepted. Same for "git commit --message=foo" and "git commit --message foo".
-- Matthieu Moy http://www-verimag.imag.fr/~moy/