Commit e2deeca76cbd1f8d28bbd4fc0144716296d7dfa9
Committed by
Henry Schreiner
1 parent
3cf5156b
Adding details
[skip ci]
Showing
2 changed files
with
2 additions
and
0 deletions
CHANGELOG.md
| @@ -14,6 +14,7 @@ | @@ -14,6 +14,7 @@ | ||
| 14 | * The clang-format script is now no longer "hidden" [#48](https://github.com/CLIUtils/CLI11/pull/48) | 14 | * The clang-format script is now no longer "hidden" [#48](https://github.com/CLIUtils/CLI11/pull/48) |
| 15 | * The order is now preserved for subcommands (list and callbacks) [#49](https://github.com/CLIUtils/CLI11/pull/49) | 15 | * The order is now preserved for subcommands (list and callbacks) [#49](https://github.com/CLIUtils/CLI11/pull/49) |
| 16 | * Tests now run individually, utilizing CMake 3.10 additions if possible [#50](https://github.com/CLIUtils/CLI11/pull/50) | 16 | * Tests now run individually, utilizing CMake 3.10 additions if possible [#50](https://github.com/CLIUtils/CLI11/pull/50) |
| 17 | +* Failure messages are now customizable, with a shorter default [#52](https://github.com/CLIUtils/CLI11/pull/52) | ||
| 17 | 18 | ||
| 18 | 19 | ||
| 19 | ## Version 1.2 | 20 | ## Version 1.2 |
README.md
| @@ -214,6 +214,7 @@ There are several options that are supported on the main app and subcommands. Th | @@ -214,6 +214,7 @@ There are several options that are supported on the main app and subcommands. Th | ||
| 214 | * `.allow_extras()`: Do not throw an error if extra arguments are left over | 214 | * `.allow_extras()`: Do not throw an error if extra arguments are left over |
| 215 | * `.prefix_command()`: Like `allow_extras`, but stop immediately on the first unrecognised item. It is ideal for allowing your app or subcommand to be a "prefix" to calling another app. | 215 | * `.prefix_command()`: Like `allow_extras`, but stop immediately on the first unrecognised item. It is ideal for allowing your app or subcommand to be a "prefix" to calling another app. |
| 216 | * `.set_footer(message)`: Set text to appear at the bottom of the help string. | 216 | * `.set_footer(message)`: Set text to appear at the bottom of the help string. |
| 217 | +* `.set_failure_message(func)`: Set the failure message function. Two provided: `CLI::FailureMessage::help` and CLI::FailureMessage::simple` (the default). | ||
| 217 | * `.group(name)`: Set a group name, defaults to `"Subcommands"`. Setting `""` will be hide the subcommand. | 218 | * `.group(name)`: Set a group name, defaults to `"Subcommands"`. Setting `""` will be hide the subcommand. |
| 218 | 219 | ||
| 219 | > Note: if you have a fixed number of required positional options, that will match before subcommand names. | 220 | > Note: if you have a fixed number of required positional options, that will match before subcommand names. |