[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Arg-parser-bug] Option to return non option char pointer in arg_parser?
From: |
Javier López |
Subject: |
[Arg-parser-bug] Option to return non option char pointer in arg_parser? |
Date: |
Tue, 15 Dec 2015 02:38:39 -0600 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hello,
New C programmer here, I'm using the c arg-parser implementation to
add parameters to a cli utility. And I wonder if the next version
could implement a function for returning a char pointer to non
detected options.
So for example if the utility receives
$ app --option "option_string" extra_arg
And --option is defined as an 'ap_yes' option, then this new
hypothetical new function would return a pointer to a "extra_arg"
string.
Right now I'm going through argv and comparing arguments to see if
it's a defined option, however that doesn't feel right.
Don't take the suggestion too hard, I may have just said nonsense =)
Best regards,
JL
- [Arg-parser-bug] Option to return non option char pointer in arg_parser?,
Javier López <=