Skip to content
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

Flag constructor arguments order isn't consistent with Option #35

Closed
robertjpayne opened this issue Oct 19, 2016 · 1 comment
Closed

Comments

@robertjpayne
Copy link

The Flag constructor takes default as the last argument where as Option takes it as the second argument.

When using both in a single command it's a bit weird to have:

Flag("web", description: "Whether or not to search the web", default: false),
Option("remote", "cocoapods.org", description: "Custom remote host"),
@djbe djbe mentioned this issue Dec 1, 2016
@kylef
Copy link
Owner

kylef commented Oct 14, 2017

The arguments have been aligned in Commander 0.8.0.

@kylef kylef closed this as completed Oct 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants