Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

restrictions for an option #179

Open
kindlychung opened this issue Apr 21, 2016 · 2 comments
Open

restrictions for an option #179

kindlychung opened this issue Apr 21, 2016 · 2 comments

Comments

@kindlychung
Copy link

kindlychung commented Apr 21, 2016

For example, I have a "--filetype" option and only asciidoc or markdown are allowed. Is there a way to do this? Of course a match {} block can be used, but is there is mechanism in the library to automate this?

@BurntSushi
Copy link
Member

You might try decoding into an enum with only those two options.

@kindlychung
Copy link
Author

Cool. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants