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
Problem cargo metadata --quiet prints to stdout even though --help says
OPTIONS:
-q, --quiet No output printed to stdout
Steps
cargo metadata --help
cargo metadata --quiet
Observe that stdout is not empty
Possible Solution(s)
Obviously, --quietmeant to indicate that no cargo messages are printed to stdout (or maybe stderr) like "Updating index". But, the way it's written, it clearly implies that no output should go to stdout.
Notes
Output of cargo version: cargo 1.47.0 (f3c7e06 2020-08-28)
This also applies to cargo build --quiet, cargo run --quiet, cargo test --quiet, cargo bench --quiet, cargo doc --quiet, and possibly other commands. They are all documented as "No output printed to stdout", but warnings, errors, test results, ..., are shown.
Activity
bishtpawan commentedon Dec 21, 2020
Hi @jonhoo, can you please share the message that fits this scenario?
Thanks
jonhoo commentedon Dec 22, 2020
Hmm, how about:
bishtpawan commentedon Dec 22, 2020
Looks good to me. Thanks
Auto merge of #9050 - bishtpawan:master, r=alexcrichton
Maxpxt commentedon Oct 21, 2021
This also applies to
cargo build --quiet,cargo run --quiet,cargo test --quiet,cargo bench --quiet,cargo doc --quiet, and possibly other commands. They are all documented as "No output printed to stdout", but warnings, errors, test results, ..., are shown.Auto merge of #10080 - hi-rustin:rustin-patch-quiet, r=alexcrichton
Auto merge of #10168 - hi-rustin:rustin-patch-flag, r=ehuss