Skip to content

Show subcommand help when try_parse returns an error #3673

Answered by andrewring
andrewring asked this question in Q&A
Discussion options

You must be logged in to vote

My problem stemmed from not having included the application name in the arguments, so there was an off by one issue with the indices when parsing. Prepending the name of the application to the subcommand list fixes both the help output and the functioning.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@epage
Comment options

@epage
Comment options

@andrewring
Comment options

@epage
Comment options

@andrewring
Comment options

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