Skip to content

Releases: jarro2783/cxxopts

v3.2.0

15 Feb 05:32
3bf2684
Compare
Choose a tag to compare

Bug fixes

  • Fix unannotated fallthrough.
  • Fix sign conversion with Unicode output.
  • Don't initialize regex in static initialiser.
  • Fix incorrect integer overflow checks.

Added

  • Add fuzzing to CI

Changed

  • Change quote output to '' to match Windows.
  • Don't split positional arguments by the list delimiter.
  • Order help groups by the order they were added.

v3.1.1

15 Feb 20:02
Compare
Choose a tag to compare

Fixes version number in header.

v3.1.0

12 Feb 20:34
Compare
Choose a tag to compare

This is a minor release with some minor bug fixes and some new utility features.

The changelog for this release is

Added

  • Support for multiple long names for the same option (= multiple long aliases)
  • Add a program() function to retrieve the program name.
  • Added a .clang-format file.
  • Added iterator and printing for a ParseResult.

Changed

  • Cleanup exception code, add cxxopts::exceptions namespace.

Bug Fixes

  • Fix arguments() having no key for options that only have a short name.

v3.0.0

02 May 20:39
Compare
Choose a tag to compare

This is a major new release. The most significant change is that the parser now returns an object with the parse result, and does not modify argc or argv. The result object does not depend on the parser, so the following is now possible:

auto result = options.parse(argc, argv);
return result;

What's Changed

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 from char** to const 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.