aboutsummaryrefslogtreecommitdiff
path: root/dotup_cli/src/commands/install.rs
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2021-07-14 15:04:08 +0100
committerdiogo464 <[email protected]>2021-07-14 15:04:08 +0100
commit4adc2435da7d58cd34b9f1706b3cea9fb524b946 (patch)
tree54c2c2d44c78c80cfeb6e3b316567402c3302785 /dotup_cli/src/commands/install.rs
parent74a90b975d7a448950625bc767b8052fe8bef0d4 (diff)
install and uninstall can be called without args.
Allow calling install and uninstall without any specified path. If no path is specified then every file/directory will be installed/uninstalled.
Diffstat (limited to 'dotup_cli/src/commands/install.rs')
-rw-r--r--dotup_cli/src/commands/install.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/dotup_cli/src/commands/install.rs b/dotup_cli/src/commands/install.rs
index 16343c5..b56c5f7 100644
--- a/dotup_cli/src/commands/install.rs
+++ b/dotup_cli/src/commands/install.rs
@@ -15,7 +15,7 @@ pub struct Opts {
15 install_base: Option<PathBuf>, 15 install_base: Option<PathBuf>,
16 16
17 /// The files/directories to install. 17 /// The files/directories to install.
18 #[clap(required = true, min_values = 1)] 18 #[clap(required = true, min_values = 1, default_value = ".")]
19 paths: Vec<PathBuf>, 19 paths: Vec<PathBuf>,
20} 20}
21 21