From 094f84d2c320bc7320674ba23c715f9fbe634862 Mon Sep 17 00:00:00 2001 From: diogo464 Date: Fri, 9 Jul 2021 05:23:11 -0400 Subject: Changed documentation/help text of subcommands. Change the documentation/help text of subcommmands and added colored output to the help text. --- dotup_cli/src/commands/uninstall.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 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 dad55a5..44c33b2 100644 --- a/dotup_cli/src/commands/uninstall.rs +++ b/dotup_cli/src/commands/uninstall.rs @@ -1,16 +1,21 @@ -use clap::Clap; use std::path::PathBuf; use super::prelude::*; +/// Uninstalls links. (Removes symlinks). +/// +/// 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)] pub struct Opts { /// The location where links will be uninstalled from. /// Defaults to home directory. #[clap(long)] install_base: Option, - /// The files/directories to uninstall + /// The files/directories to uninstall. #[clap(required = true, min_values = 1)] paths: Vec, } -- cgit