cxxopts
cxxopts copied to clipboard
Lightweight C++ command line option parser
I have found that when using the following option definition: ("g,go","go mode selection",cxxopts::value()->implicit_value("1")->default_value("0")) and using the "-g" specifier the implicit value will always be delivered regardless of the value specified...
With lots of command line options especially with long and short versions, it is difficult to locate an option from the help. It would be nice if the list could...
Hello, I have tried to use this library. Seems to be what i need, but is hard to learn it due to missing examples and, most important, missing comments for...
This problem only exists when you write your commands in shell script. Example: program -a program -a The first command will throw an option_syntax_exception because the command in shell script...
I would like to point out that an identifier like “[`CXXOPTS__VERSION_MAJOR`](https://github.com/jarro2783/cxxopts/blob/9910095719931f4a1a3be74d3a5d631851474ff8/include/cxxopts.hpp#L51 "Update candidate")” [does eventually not fit](https://www.securecoding.cert.org/confluence/display/cplusplus/DCL51-CPP.+Do+not+declare+or+define+a+reserved+identifier "Do not declare an identifier which is reserved for the compiler implementation.") to...
Compiling an application against cxxopts with Intel 18 compiler yields the following warnings ``` cxxopts.hpp(471): warning #61: integer operation result is out of range if (u > static_cast(-std::numeric_limits::min())) ^ detected...
I'm just curious about the following lines to control the length of the option's description: https://github.com/jarro2783/cxxopts/blob/76717cb3dd23fe77ad5d8ba2b7479b3eecc719a1/include/cxxopts.hpp#L1861-L1864 I have a very long string as the default value, and error occurs then...
First thanks for your great job. I got unexpected value changed to input argc. test code as below: ` #include "cxxopts.hpp" #include #include using namespace std; void print_usage(char* n) {...
Hi, is there any plan to support more expression syntaxes like this library [clipp](https://github.com/muellan/clipp#examples). Especially, I think an option with multiple arguments is very useful such as `./exe --list=1,2,3,4` or...
So far I love this project, but I am more used to the arg types being listed as an "=[type]" instead of just " type". I was able to add...