diff options
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 | ||
