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
As we add new sub-commands, we'll need to remember to take this into account. That means it should be documented somewhere. Possibilities include cargo.rs, PR template, and contributing guide.
The text was updated successfully, but these errors were encountered:
I don't think cargo build supports --. cargo run does, it passes the args to the underlying process. cargo test does, it passes the args to the test runner (e.g. cargo test -- --nocapture to print stdout). cargo rustc does, it passes the args to the compiler. Same deal for cargo rustdoc.
There's a general pattern: -- is to pass arguments down to a subprocess that cargo is "hiding".
Oh, when I ran cargo test, I ignored it once I saw it compiling. It does support -- --help. It just needs to build all of the test targets first so it has something to call --help on.
epage
changed the title
Do some subcommands need a way for passing -- arguments?
Support passing arguments down to cargo subprocess (ie --)
Sep 10, 2018
Status:
cargo build: doesn't support--
.As we add new sub-commands, we'll need to remember to take this into account. That means it should be documented somewhere. Possibilities include
cargo.rs
, PR template, and contributing guide.The text was updated successfully, but these errors were encountered: