cofyc/argparse

Positional arguments?

Opened this issue · 6 comments

The feature section on the README talks about positional arguments but no example has been shown and I can't find how it can be done even after reading the code.

cofyc commented

positional arguments are remainder arguments after all positional optional arguments are processed and removed, see the example code here

after all positional arguments are processed and removed

you mean optional arguments, right?

cofyc commented

yes, my typo

oh okay

but you have to parse the value types manually, wouldn't it be more easier that we specify positonals in the argparse_option array so it takes care of it.

but wait, that modifies a const char**