-
v1.7.1
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
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