jarro2783/cxxopts v2.0 Release Notes
-
๐ Changed
- ๐
Options::parse
returns a ParseResult rather than storing the parse result internally. - 0๏ธโฃ Options with default values now get counted as appearing once if they were not specified by the user.
โ Added
- ๐ A new
ParseResult
object that is the immutable result of parsing. It responds to the samecount
andoperator[]
asOptions
of 1.x did. - ๐ The function
ParseResult::arguments
returns a vector of the parsed arguments to iterate through in the order they were provided. - The symbol
cxxopts::version
for the version of the library. - Booleans can be specified with various strings and explicitly set false.
- ๐