Re: [PATCH 07/25] parse-options: make some arguments optional, add callbacks.
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Oct 17, 2007, 18:00 UTC
- Message-ID
- <Pine.LNX.4.64.0710171900060.25221@racer.site>
- In-Reply-To
- <20071017044405.GV13801@spearce.org>
Hi,
On Wed, 17 Oct 2007, Shawn O. Pearce wrote:
Show 20 quoted lines
> Pierre Habouzit <madcoder@debian.org> wrote:
> > On Tue, Oct 16, 2007 at 04:38:36PM +0000, René Scharfe wrote:
> > > Pierre Habouzit schrieb:
> > > > This bit is to allow to aggregate options with arguments together when
> > > > the argument is numeric.
> > > >
> > > > +#if 0
> > > > + /* can be used to understand -A1B1 like -A1 -B1 */
> > > > + if (flag & OPT_SHORT && opt->opt && isdigit(*opt->opt)) {
> > > > + *(int *)opt->value = strtol(opt->opt, (char **)&opt->opt, 10);
> > > > + return 0;
> > > > + }
> > > > +#endif
> > >
> > > I don't like it, it complicates number options with unit suffixes (e.g.
> > > --windows-memory of git-pack-objects).
> ...
> > This is a very strong argument _against_ this chunk IMO.
>
> Since everyone (including myself)... except for me ...
> is apparently strongly against this hunk I removed it when I > cherry-picked this series from Pierre into my tree. The series will be > in my pu tonight, but minus this hunk.
I can live without this hunk.
Ciao, Dscho