mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-22 05:28:42 +00:00
Rename --roots to --root (with alias for back compat) (#861)
Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
44e81c7e1a
commit
ee909e4045
2 changed files with 3 additions and 3 deletions
|
@ -195,8 +195,8 @@ pub struct Args {
|
|||
/// the metadata files inside the path you specified.
|
||||
///
|
||||
/// NOTE that `--install-path` takes precedence over this option.
|
||||
#[clap(help_heading = "Options", long)]
|
||||
pub roots: Option<PathBuf>,
|
||||
#[clap(help_heading = "Options", long, alias = "roots")]
|
||||
pub root: Option<PathBuf>,
|
||||
|
||||
/// This option will be passed through to all `cargo-install` invocations.
|
||||
///
|
||||
|
|
|
@ -53,7 +53,7 @@ pub async fn install_crates(args: Args, jobserver_client: LazyJobserverClient) -
|
|||
.collect();
|
||||
|
||||
// Compute paths
|
||||
let cargo_root = args.roots;
|
||||
let cargo_root = args.root;
|
||||
let (install_path, mut manifests, temp_dir) =
|
||||
compute_paths_and_load_manifests(cargo_root.clone(), args.install_path)?;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue