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/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dotup_cli/src/main.rs') diff --git a/dotup_cli/src/main.rs b/dotup_cli/src/main.rs index 8830853..867afb4 100644 --- a/dotup_cli/src/main.rs +++ b/dotup_cli/src/main.rs @@ -7,6 +7,7 @@ pub use config::Config; pub mod prelude { pub use super::Config; + pub use clap::{AppSettings, Clap}; pub use dotup::{Archive, Depot, DepotConfig, Link, LinkCreateParams, LinkID}; } @@ -23,7 +24,6 @@ use prelude::*; const DEFAULT_DEPOT_NAME: &str = "depot.toml"; #[derive(Clap)] -#[clap(version = "0.1", author = "d464")] #[clap(setting = AppSettings::ColoredHelp)] struct Opts { /// Path to the depot file. @@ -37,8 +37,11 @@ struct Opts { /// A level of verbosity, and can be used multiple times /// /// Level 0 - Warnings (Default) + /// /// Level 1 - Info + /// /// Level 2 - Debug + /// /// Level 3 - Trace #[clap(short, long, parse(from_occurrences))] verbose: i32, -- cgit