argp parser

Bruce Korb bkorb@gnu.org
Wed Apr 13 16:09:00 GMT 2011


On 04/09/11 13:14, Jonathan Nieder wrote:
> Karin en Edwin wrote:
>
>> 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?
>
> I'm more familiar with getopt than argp, so others may have better
> advice.  I'd suggest enqueueing options (possibly in parsed form) for
> later handling, then dealing with nonoptions, then popping options

That's a lot of convolution.  What is the problem you are actually
trying to solve?  With that knowledge, suggestions are easier.



More information about the Libc-help mailing list