This is the changelog for cxxopts
, a C++11 library for parsing command line options. The project adheres to semantic versioning.
CXXOPTS_NO_EXCEPTIONS
to disable exceptions.Options::parse
from char**
to const char**
.ParseResult
doesn't depend on a reference to the parser.ParseResult
.parse_positional
.parse_positional
doesn't exist.ParseResult::get_option
.-
.as
when option wasn't present.const
type for argv
, because most users expect to pass a non-const argv
from main
.--option=value
form if they are to be specified with an option. This is to remove the ambiguity when a positional argument could follow an option with an implicit value. For example, --foo value
, where foo
has an implicit value, will be parsed as --foo=implicit
and a positional argument value
.std::optional
as a storage type.const
for the type in the argv
parameter, since the contents of the arguments is never modified.parse_positional
function when an initializer_list
was directly passed.Options::parse
returns a ParseResult rather than storing the parse result internally.ParseResult
object that is the immutable result of parsing. It responds to the same count
and operator[]
as Options
of 1.x did.ParseResult::arguments
returns a vector of the parsed arguments to iterate through in the order they were provided.cxxopts::version
for the version of the library.The 1.x series was the first major version of the library, with release numbers starting to follow semantic versioning, after 0.x being unstable. It never had a changelog maintained for it. Releases mostly contained bug fixes, with the occasional feature added.