🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
3.2 KiB

  1. # Changelog
  2. This is the changelog for `cxxopts`, a C++11 library for parsing command line
  3. options. The project adheres to semantic versioning.
  4. ## Next version
  5. ### Changed
  6. * Only search for a C++ compiler in CMakeLists.txt.
  7. * Allow for exceptions to be disabled.
  8. * Fix duplicate default options when there is a short and long option.
  9. * Add `CXXOPTS_NO_EXCEPTIONS` to disable exceptions.
  10. * Fix char parsing for space and check for length.
  11. ## 2.2
  12. ### Changed
  13. * Allow integers to have leading zeroes.
  14. * Build the tests by default.
  15. * Don't check for container when showing positional help.
  16. ### Added
  17. * Iterator inputs to `parse_positional`.
  18. * Throw an exception if the option in `parse_positional` doesn't exist.
  19. * Parse a delimited list in a single argument for vector options.
  20. * Add an option to disable implicit value on booleans.
  21. ### Bug Fixes
  22. * Fix a warning about possible loss of data.
  23. * Fix version numbering in CMakeLists.txt
  24. * Remove unused declaration of the undefined `ParseResult::get_option`.
  25. * Throw on invalid option syntax when beginning with a `-`.
  26. * Throw in `as` when option wasn't present.
  27. * Fix catching exceptions by reference.
  28. * Fix out of bounds errors parsing integers.
  29. ## 2.1.1
  30. ### Bug Fixes
  31. * Revert the change adding `const` type for `argv`, because most users expect
  32. to pass a non-const `argv` from `main`.
  33. ## 2.1
  34. ### Changed
  35. * Options with implicit arguments now require the `--option=value` form if
  36. they are to be specified with an option. This is to remove the ambiguity
  37. when a positional argument could follow an option with an implicit value.
  38. For example, `--foo value`, where `foo` has an implicit value, will be
  39. parsed as `--foo=implicit` and a positional argument `value`.
  40. * Boolean values are no longer special, but are just an option with a default
  41. and implicit value.
  42. ### Added
  43. * Added support for `std::optional` as a storage type.
  44. * Allow the help string to be customised.
  45. * Use `const` for the type in the `argv` parameter, since the contents of the
  46. arguments is never modified.
  47. ### Bug Fixes
  48. * Building against GCC 4.9 was broken due to overly strict shadow warnings.
  49. * Fixed an ambiguous overload in the `parse_positional` function when an
  50. `initializer_list` was directly passed.
  51. * Fixed precedence in the Boolean value regex.
  52. ## 2.0
  53. ### Changed
  54. * `Options::parse` returns a ParseResult rather than storing the parse
  55. result internally.
  56. * Options with default values now get counted as appearing once if they
  57. were not specified by the user.
  58. ### Added
  59. * A new `ParseResult` object that is the immutable result of parsing. It
  60. responds to the same `count` and `operator[]` as `Options` of 1.x did.
  61. * The function `ParseResult::arguments` returns a vector of the parsed
  62. arguments to iterate through in the order they were provided.
  63. * The symbol `cxxopts::version` for the version of the library.
  64. * Booleans can be specified with various strings and explicitly set false.
  65. ## 1.x
  66. The 1.x series was the first major version of the library, with release numbers
  67. starting to follow semantic versioning, after 0.x being unstable. It never had
  68. a changelog maintained for it. Releases mostly contained bug fixes, with the
  69. occasional feature added.