Skip to content

Check if try_parse() errors due to --help #5442

Closed Answered by epage
fabolous005 asked this question in Q&A
Discussion options

You must be logged in to vote

Is there a way to do this, is there even an unique error type for that?

You want Error::use_stderr which is what we use in other cases like determining the exit_code.

(which should definitely not be the case).

Error not not necessarily mean "something bad happened" but "this can't continue as normal" which is what we do for --help. This is a big help in the implementation and for users so they can "exit early" for this non-recoverable parse state.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@fabolous005
Comment options

@epage
Comment options

@fabolous005
Comment options

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