Avoid auto exit when call help command #5876
Answered
by
epage
TimeKeepper
asked this question in
Q&A
-
I'm trying to use clap to parse commands that are not strictly from the command line.
Currently, it works well, but there is an issue: when clap parses the help command, it automatically exits the program, which is not what I expect. Is there a solution to this problem? |
Beta Was this translation helpful? Give feedback.
Answered by
epage
Jan 9, 2025
Replies: 1 comment 1 reply
-
You can also check out our REPL example |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
TimeKeepper
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
parse_from
is a function on theParser
trait. On that trait, you will also see atry_parse_from
which will return an error.You can also check out our REPL example