Skip to content

Commit dd10b59

Browse files
committed
Add hint about removal of --all-targets
1 parent afdcab7 commit dd10b59

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/bin/cargo/commands/tree.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ pub fn cli() -> App {
1313
"Exclude specific workspace members",
1414
)
1515
.arg(Arg::with_name("all").long("all").short("a").hidden(true))
16+
.arg(
17+
Arg::with_name("all-targets")
18+
.long("all-targets")
19+
.hidden(true),
20+
)
1621
.arg_features()
1722
.arg_target_triple(
1823
"Filter dependencies matching the given target-triple (default host platform)",
@@ -80,6 +85,11 @@ pub fn exec(config: &mut Config, args: &ArgMatches<'_>) -> CliResult {
8085
)
8186
.into());
8287
}
88+
if args.is_present("all-targets") {
89+
return Err(
90+
anyhow::format_err!("the --all-targets flag has been changed to --target=all").into(),
91+
);
92+
}
8393
let ws = args.workspace(config)?;
8494
let charset = tree::Charset::from_str(args.value_of("charset").unwrap())
8595
.map_err(|e| anyhow::anyhow!("{}", e))?;

0 commit comments

Comments
 (0)