cxxopts
cxxopts copied to clipboard
Lightweight C++ command line option parser
Options of type `std::vector` have an explicit specialization of the option parsing template. This being the case, I believe it also makes sense to have a similar specialization for `std::array`,...
Wondering if there is any plan to add `cxxopt::Options::parser(int argc, std::string argv)` into the library, or accept a pull request for this function. I think a good reason to include...
I have ```cpp cxxopts::Options optionParser("my_program", "long string..."); ``` where `"long string..."` is quite long (more than 80 characters). I expect it to be wrapped across multiple lines, but cxxopts just...
The following snippet results in a `SEGFAULT` when I do not input a `-i ` option running my program. ``` try { cxxopts::Options options("xxx", "descr."); options.add_options("target") ("i,input", "input (JSON format)",...
When use a short-only options name, `ParseResult::arguments.key()` will be empty string, because only long_name will be insert into m_sequential in `parse_option`: ```cpp // line 2164~2178 inline void OptionParser::parse_option ( const...
When I pass `-o a`, `-o=a`, `--output a` or `--output=a`, the program shows different results!!! It seems only `--output=a` works. I think it unexpected. Found in master and v2.2.0. Compiled...
Currently when parsing values as `double` or `float`, cxxopts uses the fallback parser using stringstream. However, using input streams does not support a representation for infinity and `NaN` (see [this...
Maybe cxxopts will support the package Manager from the conan ? https://conan.io/ https://github.com/bincrafters/conan-templates
Please add support for Windows command-line option handling: - option w/o value "/key" - option w value "/key:value"