Skip to content

Is it possible to customize the error message for the missing option value? #814

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

You must be logged in to vote

The expected(0,1) is critical there. Without that the missing argument error is triggered.

The check(...) won't really help since that is for validating individual arguments. Though I suppose that might work as well if you checked for a "1" or "true" with the expected(0,1).

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@vadz
Comment options

Comment options

You must be logged in to vote
1 reply
@vadz
Comment options

Answer selected by vadz
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