Re: [PATCH] Make builtin-reset.c use parse_options.
On Mon, Mar 03, 2008 at 10:40:40PM +0000, Junio C Hamano wrote:
Show 18 quoted lines
> Pierre Habouzit <madcoder@debian.org> writes:
>
> > On Mon, Mar 03, 2008 at 02:07:57PM +0000, Carlos Rica wrote:
> >> On Sun, Mar 2, 2008 at 5:18 PM, Junio C Hamano <gitster@pobox.com> wrote:
> >> > Although "--h" still favors "--hard" over "--help":
> >> >
> >> > $ ./git-reset --h
> >> > HEAD is now at c149184...
> >> >
> >>
> >> Pierre, is there a way to give preference to --help over --hard
> >> when someone uses --h in command line?
> >
> > The problem is that --help (and --help-all for the matter) are "magic"
> > arguments that parse-options is not aware of when it deals with
> > abbreviations.
>
> Yeah, I do not know if this really matters in real life, though.
I'm not sure either, that's why I didn't really bothered to _write_
the patch, I just mentioned how to do that if someone cares enough.
--
·O· Pierre Habouzit
··O madcoder@debian.org
OOO http://www.madism.org