File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ pub fn cli() -> App {
12
12
"Display the tree for all packages in the workspace" ,
13
13
"Exclude specific workspace members" ,
14
14
)
15
+ . arg ( Arg :: with_name ( "all" ) . long ( "all" ) . short ( "a" ) . hidden ( true ) )
15
16
. arg_features ( )
16
17
. arg_target_triple (
17
18
"Filter dependencies matching the given target-triple (default host platform)" ,
@@ -72,6 +73,13 @@ pub fn exec(config: &mut Config, args: &ArgMatches<'_>) -> CliResult {
72
73
)
73
74
. into ( ) ) ;
74
75
}
76
+ if args. is_present ( "all" ) {
77
+ return Err ( anyhow:: format_err!(
78
+ "The `cargo tree` --all flag has been changed to --no-dedupe.\n \
79
+ If you are looking to display all workspace members, use the --workspace flag."
80
+ )
81
+ . into ( ) ) ;
82
+ }
75
83
let ws = args. workspace ( config) ?;
76
84
let charset = tree:: Charset :: from_str ( args. value_of ( "charset" ) . unwrap ( ) )
77
85
. map_err ( |e| anyhow:: anyhow!( "{}" , e) ) ?;
You can’t perform that action at this time.
0 commit comments