From dcbe701caa62d8ac16da3848e967c7c51e275fa2 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Mon, 3 Oct 2022 10:07:16 +1100 Subject: [PATCH] Allow batch installation with `cli_overrides` (#454) which allows pkg-fmt, bin-dir and pkg-url to be specified while providing multiple crates to install. Fixed #444 Signed-off-by: Jiahao XU --- crates/bin/src/args.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/crates/bin/src/args.rs b/crates/bin/src/args.rs index e69befd1..898c8069 100644 --- a/crates/bin/src/args.rs +++ b/crates/bin/src/args.rs @@ -26,8 +26,8 @@ pub struct Args { /// Each value is either a crate name alone, or a crate name followed by @ and the version to /// install. The version syntax is as with the --version option. /// - /// When multiple names are provided, the --version option and any override options are - /// unavailable due to ambiguity. + /// When multiple names are provided, the --version option and override option + /// `manifest_path` is unavailable due to ambiguity. /// /// If duplicate names are provided, the last one (and their version requirement) /// is kept. @@ -249,12 +249,6 @@ pub fn parse() -> Result { "version" } else if opts.manifest_path.is_some() { "manifest-path" - } else if opts.bin_dir.is_some() { - "bin-dir" - } else if opts.pkg_fmt.is_some() { - "pkg-fmt" - } else if opts.pkg_url.is_some() { - "pkg-url" } else { "" };