When -v is passed with --list, display path to custom commands#5041
Conversation
|
r? @matklad (rust_highfive has picked a reviewer for you, use r? to override) |
|
Seems like a nifty idea to me! @rust-lang/cargo thoughts about this new feature? |
|
Sounds neat to me! |
|
Maybe it makes sense to have a verbatim output of just the |
|
@bors r+ Thanks @pwoolcoc @lukaslueg do you have a particular use-case for this in mind though? I'd rather not make promises about particular output format until we have a solid understanding of the use-case. |
|
📌 Commit f76db9c has been approved by |
…erbose, r=matklad
When -v is passed with --list, display path to custom commands
With this change, output of `cargo --list` changes slightly when 1 or more `-v` flags are passed:
```
± ./target/debug/cargo --list -v
Installed Commands:
add /path/to/home/.cargo/bin/cargo-add
bench
build
canoe /path/to/home/.cargo/bin/cargo-canoe
check
clean
do /path/to/home/.cargo/bin/cargo-do
doc
fetch
fmt /path/to/home/.cargo/bin/cargo-fmt
...
```
|
☀️ Test successful - status-appveyor, status-travis |
With this change, output of
cargo --listchanges slightly when 1 or more-vflags are passed: