Check if try_parse() errors due to --help #5442
-
i want to parse my struct with try_parse(), but continue if it fails. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You want Error::use_stderr which is what we use in other cases like determining the exit_code.
Error not not necessarily mean "something bad happened" but "this can't continue as normal" which is what we do for |
Beta Was this translation helpful? Give feedback.
You want Error::use_stderr which is what we use in other cases like determining the exit_code.
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.