-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
swap structopt for bpaf #57
base: master
Are you sure you want to change the base?
Conversation
I notice the help generates a strange warning.
Specifically, the
But besides that, this seems awesome! This PR is very educational just for me to see the derive API implemented in this way from the author themselves. I took a swing with bpaf earlier, but couldn't get it quite working out. |
Hmm.... |
I would really like to see some of that along with the comments of what you tried to do, how and why so I can improve the documentation or maybe the library. Here or there's a ticket in bpaf repo with "feedback wanted" label. |
Clean build is a bit faster and a bit smaller
I also removed vector allocation from tests - should be faster since bpaf can take them as a reference and dropped the program name from all the arguments - it is handled automagically.
Also added
FromStr
impl forChoice
and replacedToString
forParseError
withstd::fmt::Display
.You might want to expose
bpaf
'sbright-color
/dull-color
for cosmetic reasons. And maybe autocomplete.It should be possible to speed up the compilation a bit more if we replace derive API with combinatoric one.