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
Running cargo upgrade with --verbose flag produces the same content as without it. Only adding a second flag to create --verbose --verbose makes a difference.
Based on feedback about how noisy the output way. I punted on the bookkeeping for deciding what flag to show by just vaguely changing it to say "add --verbose to show more dependencies". This is definitely something that would be good to improve to short-circuit and say --verbose --verbose when its relevant.
For what it's worth, I never clued into needing to write --verbose twice. When I saw the note saying to use --verbose when I already was using it made me assume the feature was simply broken.
note: Re-run with --verbose to show more dependencies
I don't mind that this behaviour exists now that I'm aware of it, but the messaging could be improved to make it clear.
This behavior is very confusing. If it wasn't for the explanation in the issue description here, I still wouldn't know how to make cargo-edit produce the table of dependency versions. It literally tells me to use --verbose, presumably once, because why would I add it twice, and tells me the same thing again with added --verbose flag.
Suggestion:
Change note to say:
note: Re-run with `--verbose` to show more dependencies, re-run with second `--verbose` to show all dependencies
Running
cargo upgrade
with--verbose
flag produces the same content as without it. Only adding a second flag to create--verbose --verbose
makes a difference.I'm using cargo-edit-upgrade 0.12.0.
Steps to reproduce
cargo upgrade -i --recursive
:It suggest to add
--verbose
flag, so let's do it.4. Run
git restore Cargo.lock Cargo.toml
5. Run
cargo upgrade -i --recursive --verbose
:As you can see, there is no difference in output - the
--verbose
flag has been ignored.git restore Cargo.lock Cargo.toml
--verbose
flag:Only now the verbosity has increased.
The text was updated successfully, but these errors were encountered: