Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up`run` doesn't pass empty arguments #190
Comments
This comment has been minimized.
This comment has been minimized.
|
This is probably a bug in clap or me not understanding clap. The code is pretty straightforward. |
This comment has been minimized.
This comment has been minimized.
|
"command" is defined as |
This comment has been minimized.
This comment has been minimized.
|
@brson I think that's a docopt error message, or at least it's not one from clap. The error clap would have given in the same scenario (expecting an argument value but not getting one) would be:
I also just tested it with the empty string: Side note, you can force it to be an error with the |
This comment has been minimized.
This comment has been minimized.
|
@brson Thinking about it, I think it's because those arguments are being passed to |
This comment has been minimized.
This comment has been minimized.
|
Yes it's because the error came from cargo. I'll keep looking into it. Thanks |
This comment has been minimized.
This comment has been minimized.
|
@brson Ah ok, I misunderstood how it was running, I wasn't thinking the entire |
This comment has been minimized.
This comment has been minimized.
|
@kbknapp here's a test case https://gist.github.com/brson/2e4a020b220500d9b2d24e4c2faef29c |
This comment has been minimized.
This comment has been minimized.
|
Thanks! Checking it out now. |
This comment has been minimized.
This comment has been minimized.
|
Just put in a PR to fix this! Edit: I'll post back here once the new version is on crates.io (should be ~30 mins) |
homu
added a commit
to clap-rs/clap
that referenced
this issue
Mar 30, 2016
homu
added a commit
to clap-rs/clap
that referenced
this issue
Mar 30, 2016
This comment has been minimized.
This comment has been minimized.
|
v2.2.4 is on crates.io |
This comment has been minimized.
This comment has been minimized.
|
\o/ @kbknapp Thanks for the quick update! I'm pulling it in now. |
brson commentedMar 29, 2016
Source