argparse
argparse copied to clipboard
Command-line arguments parsing library.
Do you want to support REMAINDER somehow?
So far argparse always requires floating point support because of strtof(). What about some kind of optional implementation?
Problems: - current value is counted up, make it a real bool value
Converting the argparse_option::value to a union, containing int, float, etc would save a lot of ugly type casts argparse_getvalue().
Hi! Could a flag be used with parameter and without parameter simultaneously? For example smth like: #define INT_DEFAULT_VALUE 10 OPT_BOOLEAN('f', "force", &force, "force to do", NULL, 0, 0), OPT_INTEGER('i', "int",...
Added a JSON dictionary for the clib package manager to make installing argparse in new projects more convenient.
Can it support generating completions for common shells? For python's argparse, we have [shtab](https://docs.iterative.ai/shtab/), can generate shell completion script from a template. ## Solution 1: Let user do it by...
Currently, positional options are not explicitly supported but just remain as unparsed arguments. This commit adds support for positional arguments so that these are treated like other options including parsing...
## Subcommands Subcommands are now easier to add. up until now matching subcommands was done in `subcommands.c` - requiring users to handle it in their own codebase. It is now...