CLI11 v2.1 Release Notes

  • The name restrictions for options and subcommands are now much looser, allowing a wider variety of characters than before, even spaces can be used (use quotes ๐Ÿ”ง to include a space in most shells). The default configuration parser was ๐Ÿ‘Œ improved, allowing your configuration to sit in a larger file. And option callbacks have a few new settings, allowing them to be run even if the option is ๐Ÿ“œ not passed, or every time the option is parsed.

    • Option/subcommand name restrictions have been relaxed. Most characters are now allowed. #627
    • ๐Ÿ“œ The config parser can accept streams, specify a specific section, and inline comment characters are supported #630
    • force_callback & trigger_on_parse added, allowing a callback to always run on parse even if not present or every time the option is parsed #631
    • ๐Ÿ›  Bugfix(cmake): Only add CONFIGURE_DEPENDS if CLI11 is the main project #633
    • ๐Ÿ›  Bugfix(cmake): Ensure the cmake/pkg-config files install to a arch independent path #635
    • ๐Ÿ›  Bugfix: The single header file generation was missing the include guard. #620