-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Re-enable multiple values for package
arg
#127
Conversation
It might also be good to check the tests match for both arg configs. I can work on that later if you think it would add value. |
I guess this has a chance of breaking where people are using |
Thanks for the PR. To be honest, I'm a bit confused about clap's behavior here. As of cargo-llvm-cov 0.1.0, I thought I had explicitly dropped this behavior: e1199da $ cargo build --package "crossbeam-channel crossbeam-deque"
error: invalid character ` ` in pkgid: `crossbeam-channel crossbeam-deque`, characters must be Unicode XID characters (numbers, `-`, `_`, or most letters)
$ cargo build --package crossbeam-channel crossbeam-deque
error: Found argument 'crossbeam-deque' which wasn't expected, or isn't valid in this context And the clap documentation at the time said the following: https://docs.rs/clap/3.0.0-beta.4/clap/struct.Arg.html#method.multiple_occurrences
However, from the changes in the help message, it seems that it was actually implemented in clap 3.0.0-rc.3: ab9832f As a result, this became a regression that was introduced in cargo-llvm-cov 0.1.13. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I think it makes sense to support this in cargo-llvm-cov 0.1.x for compatibility, but would like to remove it in cargo-llvm-cov 0.2.0.
bors r+
We don't have any positional arguments, so I think this is fine. |
Build succeeded: |
Thanks! I agree the clap docs are/were confusing on this feature. It seems there were a number of changes to it through the beta. |
I think this may have been dropped in the Clap update. I only noticed because the pyo3 CI uses it and is pinned to 0.1.11.
See here for the error: https://github.com/PyO3/pyo3/runs/4829748531?check_suite_focus=true
Hopefully this is another quick merge, but I'm also happy to close and fix there if this was intentionally removed.