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/uninstall.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'dotup_cli/src/commands/uninstall.rs') 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::*; /// Uninstalling a link for a file that didnt have a link will do nothing. /// Uninstalling a directory will recursively uninstall all files under it. /// Symlinks are only deleted if they were pointing to the correct file. -#[derive(Clap)] -#[clap(setting = AppSettings::ColoredHelp)] +#[derive(Parser)] pub struct Opts { /// The location where links will be uninstalled from. /// Defaults to home directory. @@ -16,7 +15,7 @@ pub struct Opts { install_base: Option, /// The files/directories to uninstall. - #[clap(required = true, min_values = 1, default_value = ".")] + #[clap(min_values = 1, default_value = ".")] paths: Vec, } -- cgit