Tags give the ability to mark specific points in history as being important
  • v2.4.1
  • v2.4.0
  • v2.3.2
  • v2.3.1
  • v2.3.0
  • v2.2.0
  • v2.1.2
  • v2.1.1
  • v2.1.0
  • v2.0.0
  • v1.9.1
    5cb3efab · Bump to Version 1.9.1 ·
  • v1.9.0
  • v1.8.0
    13becadd · Version 1.8 (#280) ·
  • v1.7.1
    49ac989a · Fixes to the readme ·
    Version 1.7.1: Quick patch
    
    This version provides a quick patch for a (correct) warning from GCC 8 for the windows options code.
    
    * Fix for Windows style option parsing [#201]
    * Improve `add_subcommand` when throwing an exception [#204]
    * Better metadata for Conan package [#202]
    
    [#201]: https://github.com/CLIUtils/CLI11/pull/201
    [#202]: https://github.com/CLIUtils/CLI11/pull/202
    [#204]: https://github.com/CLIUtils/CLI11/pull/204
  • v1.7.0
    Version 1.7: Parse breakup
    
    The parsing procedure now maps much more sensibly to complex, nested subcommand structures. Each phase of the parsing happens on all subcommands before moving on with the next phase of the parse. This allows several features, like required environment variables, to work properly even through subcommand boundaries.
    Passing the same subcommand multiple times is better supported. Several new features were added as well, including Windows style option support, parsing strings directly, and ignoring underscores in names. Adding a set that you plan to change later must now be done with `add_mutable_set`.
    
    * Support Windows style options with `->allow_windows_style_options`. [#187] On by default on Windows. [#190]
    * Added `parse(string)` to split up and parse a command-line style string directly. [#186]
    * Added `ignore_underscore` and related functions, to ignore underscores when matching names. [#185]
    * The default INI Config will now add quotes to strings with spaces [#195]
    * The default message now will mention the help-all flag also if present [#197]
    * Added `->description` to set Option descriptions [#199]
    * Mutating sets (introduced in Version 1.6) now have a clear add method, `add_mutable_set*`, since the set reference should not expire [#200]
    * Subcommands now track how many times they were parsed in a parsing process. `count()` with no arguments will return the number of times a subcommand was encountered. [#179]
    * Parsing is now done in phases: `shortcurcuits`, `ini`, `env`, `callbacks`, and `requirements`; all subcommands complete a phase before moving on. [#179]
    * Calling parse multiple times is now officially supported without `clear` (automatic). [#179]
    * Dropped the mostly undocumented `short_circuit` property, as help flag parsing is a bit more complex, and the default callback behavior of options now works properly. [#179]
    * Use the standard `BUILD_TESTING` over `CLI11_TESTING` if defined (`CLI11_TESTING` may eventually be removed) [#183]
    * Cleanup warnings [#191]
    * Remove deprecated names: `set_footer`, `set_name`, `set_callback`, and `set_type_name`. Use without the `set_` instead. [#192]
    
    > ### Converting from CLI11 1.6:
    >
    > * `->short_circuit()` is no longer needed, just remove it if you were using it - raising an exception will happen in the proper place now without it.
    > * `->add_set*` becomes `->add_mutable_set*` if you were using the editable set feature
    > * `footer`, `name`, `callback`, and `type_name` must be used instead of the `set_*` versions (deprecated previously).
    
    [#179]: https://github.com/CLIUtils/CLI11/pull/179
    [#183]: https://github.com/CLIUtils/CLI11/pull/183
    [#185]: https://github.com/CLIUtils/CLI11/pull/185
    [#186]: https://github.com/CLIUtils/CLI11/pull/186
    [#187]: https://github.com/CLIUtils/CLI11/pull/187
    [#190]: https://github.com/CLIUtils/CLI11/pull/190
    [#191]: https://github.com/CLIUtils/CLI11/pull/191
    [#192]: https://github.com/CLIUtils/CLI11/pull/192
    [#197]: https://github.com/CLIUtils/CLI11/pull/197
    [#195]: https://github.com/CLIUtils/CLI11/issues/195
    [#199]: https://github.com/CLIUtils/CLI11/pull/199
    [#200]: https://github.com/CLIUtils/CLI11/pull/200
  • v1.6.2
    bd4dc911 · add extra test ·
    Version 1.6.2: Help-all
    
    This version fixes some formatting bugs with help-all. It also adds fixes for several warnings, including an experimental optional error on Clang 7. Several smaller fixes.
    
    * Fixed help-all formatting [#163]
        * Printing help-all on nested command now fixed (App)
        * Missing space after help-all restored (Default formatter)
        * More detail printed on help all (Default formatter)
        * Help-all subcommands get indented with inner blank lines removed (Default formatter)
        * `detail::find_and_replace` added to utilities
    * Fixed CMake install as subproject with `CLI11_INSTALL` flag. [#156]
    * Fixed warning about local variable hiding class member with MSVC [#157]
    * Fixed compile error with default settings on Clang 7 and libc++ [#158]
    * Fixed special case of `--help` on subcommands (general fix planned for 1.7) [#168]
    * Removing an option with links  [#179]
    
    [#156]: https://github.com/CLIUtils/CLI11/issues/156
    [#157]: https://github.com/CLIUtils/CLI11/issues/157
    [#158]: https://github.com/CLIUtils/CLI11/issues/158
    [#163]: https://github.com/CLIUtils/CLI11/pull/163
    [#168]: https://github.com/CLIUtils/CLI11/issues/168
    [#179]: https://github.com/CLIUtils/CLI11/pull/179
  • v1.6.1
    92b8f6e3 · Bump version to 1.6.1 ·
    Version 1.6.1: Platform fixes
    
    This version provides a few fixes for special cases, such as mixing with `Windows.h` and better defaults
    for systems like Hunter. The one new feature is the ability to produce "branded" single file output for
    providing custom namespaces or custom macro names.
    
    * Added fix and test for including Windows.h [#145]
    * No longer build single file by default if main project, supports systems stuck on Python 2.6 [#149], [#151]
    * Branding support for single file output [#150]
    
    [#145]: https://github.com/CLIUtils/CLI11/pull/145
    [#149]: https://github.com/CLIUtils/CLI11/pull/149
    [#150]: https://github.com/CLIUtils/CLI11/pull/150
    [#151]: https://github.com/CLIUtils/CLI11/pull/151
  • v1.6.0
    e32656e4 · Version bump ·
    Version 1.6: Formatting help
    
    Added a new formatting system [#109]. You can now set the formatter on Apps. This has also simplified the internals of Apps and Options a bit by separating most formatting code.
    
    * Added `CLI::Formatter` and `formatter` slot for apps, inherited.
    * `FormatterBase` is the minimum required.
    * `FormatterLambda` provides for the easy addition of an arbitrary function.
    * Added `help_all` support (not added by default).
    
    Changes to the help system (most normal users will not notice this):
    
    * Renamed `single_name` to `get_name(false, false)` (the default).
    * The old `get_name()` is now `get_name(false, true)`.
    * The old `get_pname()` is now `get_name(true, false)`.
    * Removed `help_*` functions.
    * Protected function `_has_help_positional` removed.
    * `format_help` can now be chained.
    * Added getters for the missing parts of options (help no longer uses any private parts).
    * Help flags now use new `short_circuit` property to simplify parsing. [#121]
    
    New for Config file reading and writing [#121]:
    
    * Overridable, bidirectional Config.
    * ConfigINI provided and used by default.
    * Renamed ini to config in many places.
    * Has `config_formatter()` and `get_config_formatter()`.
    * Dropped prefix argument from `config_to_str`.
    * Added `ConfigItem`.
    * Added an example of a custom config format using [nlohmann/json]. [#138]
    
    Validators are now much more powerful [#118], all built in validators upgraded to the new form:
    
    * A subclass of `CLI::Validator` is now also accepted.
    * They now can set the type name to things like `PATH` and `INT in [1-4]`.
    * Validators can be combined with `&` and `|`.
    * Old form simple validators are still accepted.
    
    Other changes:
    
    * Fixing `parse(args)`'s `args` setting and ordering after parse. [#141]
    * Replaced `set_custom_option` with `type_name` and `type_size` instead of `set_custom_option`. Methods return `this`. [#136]
    * Dropped `set_` on Option's `type_name`, `default_str`, and `default_val`. [#136]
    * Removed `set_` from App's `failure_message`, `footer`, `callback`, and `name`. [#136]
    * Fixed support `N<-1` for `type_size`. [#140]
    * Added `->each()` to make adding custom callbacks easier. [#126]
    * Allow empty options `add_option("-n",{})` to be edited later with `each` [#142]
    * Added filter argument to `get_subcommands`, `get_options`; use empty filter `{}` to avoid filtering.
    * Added `get_groups()` to get groups.
    * Better support for manual options with `get_option`, `set_results`, and `empty`. [#119]
    * `lname` and `sname` have getters, added `const get_parent`. [#120]
    * Using `add_set` will now capture L-values for sets, allowing further modification. [#113]
    * Dropped duplicate way to run `get_type_name` (`get_typeval`).
    * Removed `requires` in favor of `needs` (deprecated in last version). [#112]
    * Const added to argv. [#126]
    
    Backend and testing changes:
    
    * Internally, `type_name` is now a lambda function; for sets, this reads the set live. [#116]
    * Cleaner tests without `app.reset()` (and `reset` is now `clear`). [#141]
    * Better CMake policy handling. [#110]
    * Includes are properly sorted. [#120]
    * Testing (only) now uses submodules. [#111]
    
    [#109]: https://github.com/CLIUtils/CLI11/pull/109
    [#110]: https://github.com/CLIUtils/CLI11/pull/110
    [#111]: https://github.com/CLIUtils/CLI11/pull/111
    [#112]: https://github.com/CLIUtils/CLI11/pull/112
    [#113]: https://github.com/CLIUtils/CLI11/issues/113
    [#116]: https://github.com/CLIUtils/CLI11/pull/116
    [#118]: https://github.com/CLIUtils/CLI11/pull/118
    [#119]: https://github.com/CLIUtils/CLI11/pull/119
    [#120]: https://github.com/CLIUtils/CLI11/pull/120
    [#121]: https://github.com/CLIUtils/CLI11/pull/121
    [#126]: https://github.com/CLIUtils/CLI11/pull/126
    [#127]: https://github.com/CLIUtils/CLI11/pull/127
    [#138]: https://github.com/CLIUtils/CLI11/pull/138
    [#140]: https://github.com/CLIUtils/CLI11/pull/140
    [#141]: https://github.com/CLIUtils/CLI11/pull/141
    [#142]: https://github.com/CLIUtils/CLI11/pull/142
    
    [nlohmann/json]: https://github.com/nlohmann/json
  • v1.5.4
    Optionals
    
    This version fixes the optional search in the single file version; some macros were not yet defined when it did the search. You can define the `CLI11_*_OPTIONAL` macros to 0 if needed to eliminate the search.
  • v1.5.3
    7a6cd04e · Bump version to 1.5.3 ·
    Compiler compatibility
    
    This version fixes older AppleClang compilers by removing the optimization for casting. The minimum version of Boost Optional supported has been clarified to be 1.58. CUDA 7.0 NVCC is now supported.