cxxopts icon indicating copy to clipboard operation
cxxopts copied to clipboard

Lightweight C++ command line option parser

Results 96 cxxopts issues
Sort by recently updated
recently updated
newest added

The readme is very inadequate. There is a line ``` options.parse_positional({"script", "server", "filenames"}) ``` which 1. does not end in a semicolon 2. does not have argc/argv unlike the regular...

If you implement iteration of parsed options (like in the example code) and build under Visual Studio, there will be a Debug runtime assert when attempting to access the first...

After the fix for #240 is in, the library must choose a long option for the program usage information. At the moment, it's not quite clear to me which logic...

Meson, Like CMake and Bazel, is a modern build system supporting C++ with the ability to configure and build dependencies from source. To do this effectively, it needs native Meson...

I'm using two libraries, one cxxopts, that both parse commandline arguments. I would appreciate it if cxxopts (which activates first) could return a filtered argc/argv pair. Right now I do...

Related to #240, #363, and #349 Tested w/wo small names - - - This change is [](https://reviewable.io/reviews/jarro2783/cxxopts/412)

Wrap the custom help message according to the column width. - - - This change is [](https://reviewable.io/reviews/jarro2783/cxxopts/413)

Suppose I define a non-boolean option of type T, without a default value, using cxxopts. I can't obtain this option using just `cxxopts::ParseResults::as()` - because that might throw. Instead, I...

```cpp options.add_options()( "opt", "desc", cxxopts::value()->limit_value( std::unordered_set{"only", "these", "values", "are", "allowed"})); ```

Parsing an argument into a vector using the CXXOPTS_VECTOR_DELIMITER interacts unexpectedly with arguments in quotes. ### Expected Result: Providing the argument ` --strings "string_one","string,two"` would be parsed as a vector...