mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-05-06 07:03:52 +00:00
Fixed app.set_failure_message(...) -> app.failure_message(...) (#1018)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
852fc94f30
commit
c04c9b2252
@ -16,11 +16,10 @@ can do with an `App`, however.
|
|||||||
|
|
||||||
You are given a lot of control the help output. You can set a footer with
|
You are given a lot of control the help output. You can set a footer with
|
||||||
`app.footer("My Footer")`. You can replace the default help print when a
|
`app.footer("My Footer")`. You can replace the default help print when a
|
||||||
`ParseError` is thrown with
|
`ParseError` is thrown with `app.failure_message(CLI::FailureMessage::help)`.
|
||||||
`app.set_failure_message(CLI::FailureMessage::help)`. The default is
|
The default is `CLI:::FailureMessage::simple`, and you can easily define a new
|
||||||
`CLI:::FailureMessage::simple`, and you can easily define a new one. Just make a
|
one. Just make a (lambda) function that takes an App pointer and a reference to
|
||||||
(lambda) function that takes an App pointer and a reference to an error code
|
an error code (even if you don't use them), and returns a string.
|
||||||
(even if you don't use them), and returns a string.
|
|
||||||
|
|
||||||
## Adding a subcommand
|
## Adding a subcommand
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user