argparse
argparse copied to clipboard
A Simple Argument Parser for C++
`program_name` is taken from the zeroth argument. If the program is called with a full (or partial) path, then this ends up in `program_name`, and then into the help text...
I would like to suggest some improvements to the argparse project: - introduction of count limits for multi-value args - providing result collections for parse errors instead of writing to...
Onnxruntime session requires const `wchar_t*` string as input and sometimes it has to be read from command line arguments. It would be nice if `argparse` could be used to directly...
Sorry this came late, but I recently (in Feb!) also made an implementation for subparsers, so I thought I'd share it still. It's at https://github.com/limwz01/argparse_mf/tree/with_subparsers with the commit https://github.com/limwz01/argparse_mf/commit/fccc2102e605d0c34f2d1ca2f8ed9c606c6694e4 ....
I could not use the library on my Linux machine until I escaped the CSI sequences correctly: `\e` -> `\\e` This PR should fix it for any unixoid system.
Hello, First, this is a nice library! very clean API. Some suggestions for improvement: 1. I would expect raise_on_error to throw when unrecognized argument is provided. (Similar to how python...
```cpp struct MyArgs : public argparse::Args { size_t& test = kwarg("-t", "test"); }; ``` What's wrong with this? Why am I forced to use int or unsigned int instead of...
Adds in `-Wshadow -Wdouble-promotion -Wextra` to examples to help enforce more strict compiler warnings. Also fixes up where argparse and tests fail these warnings.
Gcc version 7 only has access to experimental/filesystem. These simple modifications allows to discover such situation and link to . Tested on GCC version 7.5 (Ubuntu 18.04).