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/install.rs | 10 +++++++--- 1 file changed, 7 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 72cabf3..16343c5 100644 --- a/dotup_cli/src/commands/install.rs +++ b/dotup_cli/src/commands/install.rs @@ -1,16 +1,20 @@ -use clap::Clap; use std::path::PathBuf; use super::prelude::*; +/// Install links. (Creates symlinks). +/// +/// 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)] pub struct Opts { /// The location where links will be installed to. - /// Defaults to home directory. + /// Defaults to the home directory. #[clap(long)] install_base: Option, - /// The files/directories to install + /// The files/directories to install. #[clap(required = true, min_values = 1)] paths: Vec, } -- cgit