Skip to content
/ clap Public
  • Rate limit · GitHub

    Access has been restricted

    You have triggered a rate limit.

    Please wait a few minutes before you try again;
    in some cases this may take up to an hour.

  • Notifications You must be signed in to change notification settings
  • Fork 1.1k

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

Answered by pksunkara
loewenheim asked this question in Q&A

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

You must be logged in to vote
6 replies
@pksunkara

@loewenheim

@pksunkara

@loewenheim

@CreepySkeleton

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