diff options
| author | diogo464 <[email protected]> | 2021-10-30 21:09:56 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-30 21:09:56 +0100 |
| commit | 89daa500b322f98436abb09a80c1a4e0b3c96a2e (patch) | |
| tree | ee905efee3761f2cf3f8efdae52d159f25b2511d /dotup_cli/src/commands/uninstall.rs | |
| parent | 450ec8fbae076543d8ccc2d363613f0ae778a01d (diff) | |
| parent | 3b4b9aa6bc041f1e24761e94b1c052ad20f9ca66 (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/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 | ||
