mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 22:30:03 +00:00
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 <Jiahao_XU@outlook.com>
This commit is contained in:
parent
ec2bdb551e
commit
dcbe701caa
1 changed files with 2 additions and 8 deletions
|
@ -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
|
/// 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.
|
/// install. The version syntax is as with the --version option.
|
||||||
///
|
///
|
||||||
/// When multiple names are provided, the --version option and any override options are
|
/// When multiple names are provided, the --version option and override option
|
||||||
/// unavailable due to ambiguity.
|
/// `manifest_path` is unavailable due to ambiguity.
|
||||||
///
|
///
|
||||||
/// If duplicate names are provided, the last one (and their version requirement)
|
/// If duplicate names are provided, the last one (and their version requirement)
|
||||||
/// is kept.
|
/// is kept.
|
||||||
|
@ -249,12 +249,6 @@ pub fn parse() -> Result<Args, BinstallError> {
|
||||||
"version"
|
"version"
|
||||||
} else if opts.manifest_path.is_some() {
|
} else if opts.manifest_path.is_some() {
|
||||||
"manifest-path"
|
"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 {
|
} else {
|
||||||
""
|
""
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue