From 3b4b9aa6bc041f1e24761e94b1c052ad20f9ca66 Mon Sep 17 00:00:00 2001 From: diogo464 Date: Sat, 30 Oct 2021 20:55:22 +0100 Subject: update to compile with new clap version --- dotup_cli/src/commands/install.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'dotup_cli/src/commands/install.rs') 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::*; /// /// Installing a link will create the necessary directories. /// If a file or directory already exists at the location a link would be installed this command will fail. -#[derive(Clap)] -#[clap(setting = AppSettings::ColoredHelp)] +#[derive(Parser)] pub struct Opts { /// The location where links will be installed to. /// Defaults to the home directory. @@ -15,7 +14,7 @@ pub struct Opts { install_base: Option, /// The files/directories to install. - #[clap(required = true, min_values = 1, default_value = ".")] + #[clap(min_values = 1, default_value = ".")] paths: Vec, } -- cgit