On Mon, Dec 17, 2012 at 10:52:33PM +0100, Anton Khirnov wrote:
> --- a/cmdutils.c
> +++ b/cmdutils.c
> @@ -416,6 +439,224 @@ int opt_default(void *optctx, const char *opt, const
> char *arg)
>
> +/*
> + * Check whether given option is a group separator.
> + *
> + * @return index of the group def
On 12/17/2012 10:52 PM, Anton Khirnov wrote:
> It splits the commandline into a more convenient internal representation
> for further parsing.
>
> This will allow e.g.
> - processing global options first independently of their location on the
> commandline, eliminating ugly hacks for processing
It splits the commandline into a more convenient internal representation
for further parsing.
This will allow e.g.
- processing global options first independently of their location on the
commandline, eliminating ugly hacks for processing e.g. cpuflags
first
- better options validation and err