-
-
Notifications
You must be signed in to change notification settings - Fork 151
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
Idea: adopt docopt #71
Comments
That was initially the long-term plan, but after having used Swift for a while, I've come to appreciate type safety, so now I'm leaning more towards going the other way, and generating the help text from APIs instead. No matter how well specified something is, parsing will have ambiguities. |
Understood. Are you aiming for a declarative API or something like |
Something like |
Pretty much just expanding on the existing options object: {
flags: {
rainbow: {
type: 'boolean',
alias: 'r'
}
}
} I imagine we could add more options there, and a way to define command and examples too. |
hi, just wanted to post here, maybe it's of use to anyone else. just build my quick and rough self generating usage message from the flags array would be lovely to have something like this already included thank you for this package, it s lovely
|
We should still add a link to http://docopt.org/, to encourage better descriptions for new developers. |
It would be awesome if meow could adopt http://docopt.org/ to deduce additional behaviour from the help text. This could be
The text was updated successfully, but these errors were encountered: