CLI11 v2.0 Release Notes
-
๐ This version focuses on cleaning up deprecated functionality, and some minor 0๏ธโฃ default changes. The config processing is TOML compliant now. Atomics and ๐ complex numbers are directly supported, along with other container improvements. A new version flag option has finally been added. Subcommands are significantly ๐ improved with new features and bugfixes for corner cases. This release contains โ a lot of backend cleanup, including a complete overhaul of the testing system and single file generation system.
- Built-in config format is TOML compliant now #435
- ๐ More powerful containers, support for
%%
separator #423 - ๐ Support atomic types #520 and complex types natively #423
- โ Add a type validator
CLI::TypeValidator<TYPE>
#526 - โ Add a version flag easily #452, with help message #601
- ๐ Support
->silent()
on subcommands. #529 - โ Add alias section to help for subcommands #545
- ๐ Allow quotes to specify a program name #605
- Backend: redesigned MakeSingleFiles to have a higher level of manual control, to support future features. #546
- ๐ Backend: moved testing from GTest to Catch2 #574
- ๐ Bugfix: avoid duplicated and missed calls to the final callback #584
- ๐ Bugfix: support embedded newlines in more places #592
- ๐ Bugfix: avoid listing helpall as a required flag #530
- ๐ Bugfix: avoid a clash with WINDOWS define #563
- ๐ Bugfix: the help flag didn't get processed when a config file was required #606
- ๐ Bugfix: fix description of non-configurable subcommands in config #604
- ๐ Build: support pkg-config #523
Converting from CLI11 1.9
๐ > - Removed deprecated set commands, use validators instead. #565 0๏ธโฃ > - The final "defaulted" bool has been removed, use
->capture_default_str()
0๏ธโฃ > instead. Useapp.option_defaults()->always_capture_default()
to set this for all future options. #597- Use
add_option
on a complex number instead ofadd_complex
, which has ๐ > been removed.