cxxopts
cxxopts copied to clipboard
Lightweight C++ command line option parser
This simply allows '.' to exist in arguments. Some libraries use `.` to denote nested configurations which is not currently possible with cxxopts. - - - This change is [](https://reviewable.io/reviews/jarro2783/cxxopts/358)
You should probably make it "(C) 2014-" or "(C) 2014-2022" rather than "2014, 2015, 2016, 2017".
Can one reliably use values which are string_view's? Where the default value is a non-owning reference, and so is the parsed value? The Wiki should clarify this point IMHO.
I realize this would break existing functionality significantly, but here's my idea: Command-line options either can-take a value or cant-take one; in the former case they're naturally booleans, otherwise naturally...
`Value` and `abstract_value` are both abstract base classes which can't be instantiated, with the latter inheriting the former. But - what's the use in even having a `Value` class, if...
One can observe a decomposition of `cxxopts.hpp` into several parts: * non-option-specific string-related code * Exception-related code * the values namespace and the Value class * KeyValue, Option, OptionParser and...
Suppose I've set `allow_unrecognized_options()`. I understand that I don't get those back as some map of option-name-to-value (as discussed in #239). But - why are these options removed from the...
As per title: `packaging/pkgconfig.pc.in` has ``` prefix=@CMAKE_INSTALL_PREFIX@ includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ ``` and so can’t handle absolute paths in `CMAKE_INSTALL_INCLUDEDIR`. This leads to broken .pc files on NixOS in particular. See “[Concatenating paths...
code as below, and I tried both default_value and implicit value, got same error: ` options.add_options() ("t,trigger", "trigger on.", co::value()->default_value(0u)) ` which compiled but given such error: ` terminate called...
When I define a default argument to an option like this: ``` ("c,config", "a json config, as a string", cxxopts::value()->default_value("")) ``` it shows in the help like this: ``` -c,...