]> git.proxmox.com Git - cargo.git/commitdiff
Enable `--target-dir` support in `install` subcommand
authorbl2e <53062696+bl2e@users.noreply.github.com>
Thu, 18 Jun 2020 23:21:04 +0000 (16:21 -0700)
committerbl2e <53062696+bl2e@users.noreply.github.com>
Sun, 21 Jun 2020 00:49:44 +0000 (17:49 -0700)
src/bin/cargo/commands/install.rs

index b26c0cc6d4a54d9041c444a59848d4cca4046ab9..88c75fbc52c4a9721f0e4b5c058e8861dab8311f 100644 (file)
@@ -57,6 +57,7 @@ pub fn cli() -> App {
             "Install all examples",
         )
         .arg_target_triple("Build for the target triple")
+        .arg_target_dir()
         .arg(opt("root", "Directory to install packages into").value_name("DIR"))
         .arg(
             opt("index", "Registry index to install from")