Skip to content

Print usage help if parse failed #737

Answered by phlptp
BMBurstein asked this question in Q&A
Discussion options

You must be logged in to vote

Another Probably better option is

app.failure_message(CLI::FailureMessage::help);

or you could define your custom callback function to go into the failure_message callback to do whatever you wanted to do.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by BMBurstein
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants