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/init.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'dotup_cli/src/commands/init.rs') diff --git a/dotup_cli/src/commands/init.rs b/dotup_cli/src/commands/init.rs index bfec6ca..8765dbf 100644 --- a/dotup_cli/src/commands/init.rs +++ b/dotup_cli/src/commands/init.rs @@ -1,8 +1,11 @@ -use clap::Clap; - use super::prelude::*; +/// Creates an empty depot file if one doesnt already exist. +/// +/// By default this will create the file in the current directory +/// but the --depot flag can be used to change this path. #[derive(Clap)] +#[clap(setting = AppSettings::ColoredHelp)] pub struct Opts {} pub fn main(config: Config, opts: Opts) -> anyhow::Result<()> { -- cgit