All Versions
11
Latest Version
Avg Release Cycle
75 days
Latest Release
-
Changelog History
Page 1
Changelog History
Page 1
-
v3.0 Changes
๐ Changed
- Only search for a C++ compiler in CMakeLists.txt.
- ๐ Allow for exceptions to be disabled.
- ๐ Fix duplicate default options when there is a short and long option.
- Add
CXXOPTS_NO_EXCEPTIONS
to disable exceptions. - ๐ Fix char parsing for space and check for length.
- Change argument type in
Options::parse
fromchar**
toconst char**
. - ๐จ Refactor parser to not change its arguments.
- ๐
ParseResult
doesn't depend on a reference to the parser. - ๐ Fixed several warnings and code quality issues.
- ๐ Improved formatting for help descriptions.
- ๐ Improve integer parsing.
โ Added
- ๐ A list of unmatched arguments is available in
ParseResult
. - ๐ Support single letter options with argument attached.
- ๐ Use if it is present.
๐ Bug Fixes
- ๐ Fix missing option name in exception.
-
v2.2 Changes
๐ Changed
- ๐ Allow integers to have leading zeroes.
- ๐ Build the tests by default.
- Don't check for container when showing positional help.
โ Added
- ๐ Iterator inputs to
parse_positional
. - ๐ Throw an exception if the option in
parse_positional
doesn't exist. - ๐ Parse a delimited list in a single argument for vector options.
- โ Add an option to disable implicit value on booleans.
๐ Bug Fixes
- ๐ Fix a warning about possible loss of data.
- ๐ Fix version numbering in CMakeLists.txt
- โ Remove unused declaration of the undefined
ParseResult::get_option
. - Throw on invalid option syntax when beginning with a
-
. - Throw in
as
when option wasn't present. - ๐ Fix catching exceptions by reference.
- ๐ Fix out of bounds errors parsing integers.
-
v2.1.2
January 13, 2019 -
v2.1.1 Changes
April 11, 2018๐ Bug Fixes
- โช Revert the change adding
const
type forargv
, because most users expect to pass a non-constargv
frommain
.
- โช Revert the change adding
-
v2.1 Changes
๐ Changed
- Options with implicit arguments now require the
--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
, wherefoo
has an implicit value, will be parsed as--foo=implicit
and a positional argumentvalue
. - 0๏ธโฃ Boolean values are no longer special, but are just an option with a default and implicit value.
โ Added
- โ Added support for
std::optional
as a storage type. - ๐ Allow the help string to be customised.
- ๐ Use
const
for the type in theargv
parameter, since the contents of the arguments is never modified.
๐ Bug Fixes
- ๐ Building against GCC 4.9 was broken due to overly strict shadow warnings.
- ๐ Fixed an ambiguous overload in the
parse_positional
function when aninitializer_list
was directly passed. - ๐ Fixed precedence in the Boolean value regex.
- Options with implicit arguments now require the
-
v2.0 Changes
๐ 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.
- ๐
-
v1.4.4
November 01, 2017 -
v1.4.3
September 04, 2017 -
v1.4.2
August 29, 2017 -
v1.4.1
August 17, 2017