]> git.proxmox.com Git - cargo.git/commitdiff
Add hint about removal of --all-targets
authorEric Huss <eric@huss.org>
Thu, 2 Apr 2020 20:09:35 +0000 (13:09 -0700)
committerEric Huss <eric@huss.org>
Thu, 2 Apr 2020 20:09:35 +0000 (13:09 -0700)
src/bin/cargo/commands/tree.rs

index bb23d647a2be1bcdd04a1ca3a5bdc2108ab025a2..42b44fc1d4c5597f20c83f332e9271e28ed9bc1b 100644 (file)
@@ -13,6 +13,11 @@ pub fn cli() -> App {
             "Exclude specific workspace members",
         )
         .arg(Arg::with_name("all").long("all").short("a").hidden(true))
+        .arg(
+            Arg::with_name("all-targets")
+                .long("all-targets")
+                .hidden(true),
+        )
         .arg_features()
         .arg_target_triple(
             "Filter dependencies matching the given target-triple (default host platform)",
@@ -80,6 +85,11 @@ pub fn exec(config: &mut Config, args: &ArgMatches<'_>) -> CliResult {
         )
         .into());
     }
+    if args.is_present("all-targets") {
+        return Err(
+            anyhow::format_err!("the --all-targets flag has been changed to --target=all").into(),
+        );
+    }
     let ws = args.workspace(config)?;
     let charset = tree::Charset::from_str(args.value_of("charset").unwrap())
         .map_err(|e| anyhow::anyhow!("{}", e))?;