diff options
| author | diogo464 <[email protected]> | 2021-10-30 20:55:22 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2021-10-30 21:07:00 +0100 |
| commit | 3b4b9aa6bc041f1e24761e94b1c052ad20f9ca66 (patch) | |
| tree | 3ddd456c76fef336bbb4148e38f5e9ac214a1bd1 /dotup_cli/src/commands/install.rs | |
| parent | 35ea23dad9071078ea302e52ff7c51482e657714 (diff) | |
update to compile with new clap version
Diffstat (limited to 'dotup_cli/src/commands/install.rs')
| -rw-r--r-- | dotup_cli/src/commands/install.rs | 5 |
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)] | ||
| 11 | pub struct Opts { | 10 | pub 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 | ||
