aboutsummaryrefslogtreecommitdiff
path: root/dotup_cli/src/commands/install.rs
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2021-10-30 21:09:56 +0100
committerGitHub <[email protected]>2021-10-30 21:09:56 +0100
commit89daa500b322f98436abb09a80c1a4e0b3c96a2e (patch)
treeee905efee3761f2cf3f8efdae52d159f25b2511d /dotup_cli/src/commands/install.rs
parent450ec8fbae076543d8ccc2d363613f0ae778a01d (diff)
parent3b4b9aa6bc041f1e24761e94b1c052ad20f9ca66 (diff)
Merge pull request #11 from diogo464/dependabot/cargo/clap-3.0.0-beta.5
Bump clap from 3.0.0-beta.2 to 3.0.0-beta.5
Diffstat (limited to 'dotup_cli/src/commands/install.rs')
-rw-r--r--dotup_cli/src/commands/install.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/dotup_cli/src/commands/install.rs b/dotup_cli/src/commands/install.rs
index b56c5f7..e166a7b 100644
--- a/dotup_cli/src/commands/install.rs
+++ b/dotup_cli/src/commands/install.rs
@@ -6,8 +6,7 @@ use super::prelude::*;
6/// 6///
7/// Installing a link will create the necessary directories. 7/// Installing a link will create the necessary directories.
8/// If a file or directory already exists at the location a link would be installed this command will fail. 8/// If a file or directory already exists at the location a link would be installed this command will fail.
9#[derive(Clap)] 9#[derive(Parser)]
10#[clap(setting = AppSettings::ColoredHelp)]
11pub struct Opts { 10pub struct Opts {
12 /// The location where links will be installed to. 11 /// The location where links will be installed to.
13 /// Defaults to the home directory. 12 /// Defaults to the home directory.
@@ -15,7 +14,7 @@ pub struct Opts {
15 install_base: Option<PathBuf>, 14 install_base: Option<PathBuf>,
16 15
17 /// The files/directories to install. 16 /// The files/directories to install.
18 #[clap(required = true, min_values = 1, default_value = ".")] 17 #[clap(min_values = 1, default_value = ".")]
19 paths: Vec<PathBuf>, 18 paths: Vec<PathBuf>,
20} 19}
21 20