Prefix CLI errors with cargo:
#15114
Labels
A-cli
Area: Command-line interface, option parsing, etc.
A-diagnostics
Area: Error and warning messages generated by Cargo itself.
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
S-triage
Status: This issue is waiting on initial triage.
Problem
When using
cargo run
, it can be hard to distinguish output from cargo and output from the spawned executable, especially if both are using clap. Take for example this error:and compare it to this one:
both of these look similar, and it is hard to tell what's happening at a glance.
Proposed Solution
Prefix each
error:
diagnostic withcargo:
; the example above would start withcargo: error: unexpected argument '--exe' found
Notes
maybe it sense to do this for everyone upstream in clap instead of just for cargo?
The text was updated successfully, but these errors were encountered: