-
Notifications
You must be signed in to change notification settings - Fork 86
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
Repeated arguments for options #37
Comments
It's not possible yet without making a ArgumentDescriptor implementation, but it wouldn't be hard to implement. In fact, I have implemented this in the past in a tool that used Commander but never merged it into Commander yet. I'll try dig it out, it was called |
Cool and thanks. For now, I'd say this is a feature request, but vaguely possible I'll contribute this in the future. |
This is now available in Commander 0.6.0. |
Ah, I found it: https://github.com/kylef/Curassow/blob/87e1f9bb5297cf40a5713b649fd81be7dca9662d/Sources/Curassow.swift#L19-L56 |
I want to do something like:
which would parse out as an array of strings for
set
. I don't think this is currently possible because theOptions
object takes a specific count and expects all the arguments to immediately follow the--set
option. Is that right? Is this a good thing to add if so?The text was updated successfully, but these errors were encountered: