argp parser
Andi Hellmund
mail@andihellmund.com
Sat Apr 9 08:25:00 GMT 2011
Hi,
> I am using the argp parser and I would like to make sure the argument always
> gets parsed before the options (default behaviour is the opposite). I have
> looked in the argp documentation, but cannot find anything.
> Anyone have an idea how I could do this?
The argp parser is not part of the GCC project, but it is included in
GLIBC. The GLIBC project has a separate mailing list at
libc-help@sourceware.org.
I don't know the implementation details of the argp parser, but I would
suppose the order is fixed. But there are also other projects which
might help you:
* getopt
* GNU get options (ggo)
GGO for example doesn't work via a call-back (like argp) but parses the
options and provides you with a structure containing all the options and
flags. Not sure, if that's what you want ...
Best regards,
Andi
More information about the Gcc-help
mailing list