argparse icon indicating copy to clipboard operation
argparse copied to clipboard

Command-line arguments parsing library.

Results 20 argparse issues
Sort by recently updated
recently updated
newest added

Thanks for a great library! I was just wondering, how could I implement default values easily? That is, if `--myoption` argument is not specified on the command line, then, say,...

Hi, I added a required options feature by adding a new field **parsed** to the option struct and a **OPT_REQUIRED** flag so that every parsed option is checked after parsing...

size/M

I think required arguments would be a great addition. As far as I know, they are not implemented.

Now, if I was actually making a compiler, I probably would use a different argument parsing library. How would we deal with multiple options? If we ran: ``` ./a.out -Ooption1...

Hi, does your library support subcomands such as used in GIT or Argparse? e.g. > git add * > git --help clone etc. Thank you

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.

比如:OPT_BOOLEAN('t', "test", &test, "test only", NULL, 0, 0), 我想命令行参数中-t带与不带参数均可正常解析能实现吗

Is there a port for this library on [vcpkg](https://github.com/microsoft/vcpkg)? If I do a search I only come up with [https://github.com/p-ranav/argparse](p-ranav/argparse)