Open
Description
Problem
cargo tree -i
can't be used in a workspace.
Steps
$ cargo tree --workspace -p winapi -i
error: The `-i` flag requires a package name.
The `-i` flag is used to inspect the reverse dependencies of a specific
package. It will invert the tree and display the packages that depend on the
given package.
Note that in a workspace, by default it will only display the package's
reverse dependencies inside the tree of the workspace member in the current
directory. The --workspace flag can be used to extend it so that it will show
the package's reverse dependencies across the entire workspace. The -p flag
can be used to display the package's reverse dependencies only with the
subtree of the package given to -p.
Note that both cargo tree -i -p winapi
and cargo tree --workspace
work fine individually.
Notes
Output of cargo version
: cargo 1.49.0-nightly (d5556aeb8 2020-11-04)