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

Short option arguments #310

Closed
birkenfeld opened this issue Oct 5, 2015 · 7 comments
Closed

Short option arguments #310

birkenfeld opened this issue Oct 5, 2015 · 7 comments

Comments

@birkenfeld
Copy link
Contributor

In most option parsers that restrict single-dash options to one char, you can give arguments to short options in the same word, i.e.

grep -iC2 src *

clap doesn't allow this, which is kind of surprising.

@sru
Copy link
Contributor

sru commented Oct 5, 2015

It's a recent addition. It hasn't made into Cargo yet. See #277 (comment)

@birkenfeld
Copy link
Contributor Author

Ah, excellent! Then this can be closed I guess?

@kbknapp
Copy link
Member

kbknapp commented Oct 5, 2015

We'll leave this open until 1.4.4 gets published to crates.io (which you can track via milestones) 😄

@kbknapp
Copy link
Member

kbknapp commented Oct 5, 2015

@birkenfeld until then, the current master branch supports this feature 😉

@kbknapp
Copy link
Member

kbknapp commented Oct 6, 2015

1.4.4 is out on crates.io, but due to a bug I'd wait until 1.4.5 is out (sometime today) before upgrading.

@kbknapp kbknapp closed this as completed Oct 6, 2015
@kbknapp
Copy link
Member

kbknapp commented Oct 6, 2015

1.4.5 is out, bug fixed 😉

@birkenfeld
Copy link
Contributor Author

Great!

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

3 participants