Skip to content

Why do enums need a FromStr impl, but subcommands don’t? #1866

Answered by pksunkara
loewenheim asked this question in Q&A
Discussion options

You must be logged in to vote

FooBar needs a FromStr impl so that the arguments provided to the clap program will be auto parsed and filled to it. What are you trying to do here?

Replies: 1 comment 6 replies

Comment options

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

@loewenheim
Comment options

@pksunkara
Comment options

@loewenheim
Comment options

@CreepySkeleton
Comment options

Answer selected by pksunkara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants