argparse icon indicating copy to clipboard operation
argparse copied to clipboard

Positional arguments?

Open tripulse opened this issue 3 years ago • 2 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.

tripulse avatar Jul 23 '21 09:07 tripulse

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

cofyc avatar Jul 23 '21 11:07 cofyc

after all positional arguments are processed and removed

you mean optional arguments, right?

tripulse avatar Jul 23 '21 11:07 tripulse

yes, my typo

cofyc avatar Jul 23 '21 14:07 cofyc

oh okay

tripulse avatar Jul 23 '21 15:07 tripulse

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.

tripulse avatar Jul 23 '21 15:07 tripulse

but wait, that modifies a const char**

tripulse avatar Nov 27 '21 08:11 tripulse