diff options
Diffstat (limited to 'dotup_cli/src/commands/uninstall.rs')
| -rw-r--r-- | dotup_cli/src/commands/uninstall.rs | 5 |
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)] | ||
| 12 | pub struct Opts { | 11 | pub 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 | ||
