aboutsummaryrefslogtreecommitdiff
path: root/dotup_cli/src/commands/uninstall.rs
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2021-10-30 20:55:22 +0100
committerdiogo464 <[email protected]>2021-10-30 21:07:00 +0100
commit3b4b9aa6bc041f1e24761e94b1c052ad20f9ca66 (patch)
tree3ddd456c76fef336bbb4148e38f5e9ac214a1bd1 /dotup_cli/src/commands/uninstall.rs
parent35ea23dad9071078ea302e52ff7c51482e657714 (diff)
update to compile with new clap version
Diffstat (limited to 'dotup_cli/src/commands/uninstall.rs')
-rw-r--r--dotup_cli/src/commands/uninstall.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/dotup_cli/src/commands/uninstall.rs b/dotup_cli/src/commands/uninstall.rs
index a81d5e4..fdb1a0a 100644
--- a/dotup_cli/src/commands/uninstall.rs
+++ b/dotup_cli/src/commands/uninstall.rs
@@ -7,8 +7,7 @@ use super::prelude::*;
7/// Uninstalling a link for a file that didnt have a link will do nothing. 7/// Uninstalling a link for a file that didnt have a link will do nothing.
8/// Uninstalling a directory will recursively uninstall all files under it. 8/// Uninstalling a directory will recursively uninstall all files under it.
9/// Symlinks are only deleted if they were pointing to the correct file. 9/// Symlinks are only deleted if they were pointing to the correct file.
10#[derive(Clap)] 10#[derive(Parser)]
11#[clap(setting = AppSettings::ColoredHelp)]
12pub struct Opts { 11pub struct Opts {
13 /// The location where links will be uninstalled from. 12 /// The location where links will be uninstalled from.
14 /// Defaults to home directory. 13 /// Defaults to home directory.
@@ -16,7 +15,7 @@ pub struct Opts {
16 install_base: Option<PathBuf>, 15 install_base: Option<PathBuf>,
17 16
18 /// The files/directories to uninstall. 17 /// The files/directories to uninstall.
19 #[clap(required = true, min_values = 1, default_value = ".")] 18 #[clap(min_values = 1, default_value = ".")]
20 paths: Vec<PathBuf>, 19 paths: Vec<PathBuf>,
21} 20}
22 21