Re: [PATCH 2/2] allow mangling short options which take integer arguments
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Oct 2, 2009, 08:41 UTC
- Message-ID
- <alpine.DEB.1.00.0910021040260.18640@intel-tinevez-2-302>
- In-Reply-To
- <20091002082633.GA21168@localhost>
Hi,
On Fri, 2 Oct 2009, Clemens Buchacher wrote:
Show 18 quoted lines
> On Fri, Oct 02, 2009 at 03:50:12AM -0400, Jeff King wrote: > > On Fri, Oct 02, 2009 at 09:43:17AM +0200, Clemens Buchacher wrote: > > > > > On Thu, Oct 01, 2009 at 11:55:03PM +0200, Johannes Schindelin wrote: > > > > > > > And this patch looks even more straight-forward than 1/2, _but_... what > > > > about cases where there are short options that are digits? > > > > > > Could you point me to one of those? I did not find any during my > > > non-exhaustive search. We should be able to handle them easily by adding > > > PARSE_OPT_MANY. > > > > The one that comes readily to mind is "git log -1", but that is actually > > parsed by the revision options parser, which doesn't use parseopt. But > > there are a few done by parseopt: > > Oh, I mistakenly thought Dscho was asking about options with > single-digit arguments. Thanks for clearing this up.
I was actually thinking both of "git log -11" as well as out-of-tree users of parse-options.
Ciao, Dscho