From: Junio C Hamano Date: Mon, 03 Mar 2008 22:40:40 GMT Subject: Re: [PATCH] Make builtin-reset.c use parse_options. Message-ID: <7vwsojfn2v.fsf@gitster.siamese.dyndns.org> In-Reply-To: <20080303170706.GA23210@artemis.madism.org> Pierre Habouzit 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 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.