You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> cargo check --features a --features b
error: The argument '--features <FEATURES>' was provided more than once, but cannot be used multiple times
USAGE:
cargo test --all --features <FEATURES> --message-format <FMT>
Well, that's just silly! It makes it harder to add a feature to an existing command line, it causes trouble if you put feature flags in environment variables...
The expected behavior of multiple --features flags should be dead obvious, but I'll state it anyways: Multiple --features lists are to be concatenated, because cargo features are fundamentally additive in nature.
The text was updated successfully, but these errors were encountered:
ExpHP
added
the
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
label
Jun 27, 2019
Add support for multiple --features options
Closes#7076
Pretty straightforward, but I added an extra test to make sure that space-separated features work in conjunction with multiple --features options.
Well, that's just silly! It makes it harder to add a feature to an existing command line, it causes trouble if you put feature flags in environment variables...
The expected behavior of multiple
--features
flags should be dead obvious, but I'll state it anyways: Multiple--features
lists are to be concatenated, because cargo features are fundamentally additive in nature.The text was updated successfully, but these errors were encountered: