aboutsummaryrefslogtreecommitdiff
path: root/dotup_cli/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'dotup_cli/src/main.rs')
-rw-r--r--dotup_cli/src/main.rs5
1 files changed, 4 insertions, 1 deletions
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;
7 7
8pub mod prelude { 8pub mod prelude {
9 pub use super::Config; 9 pub use super::Config;
10 pub use clap::{AppSettings, Clap};
10 pub use dotup::{Archive, Depot, DepotConfig, Link, LinkCreateParams, LinkID}; 11 pub use dotup::{Archive, Depot, DepotConfig, Link, LinkCreateParams, LinkID};
11} 12}
12 13
@@ -23,7 +24,6 @@ use prelude::*;
23const DEFAULT_DEPOT_NAME: &str = "depot.toml"; 24const DEFAULT_DEPOT_NAME: &str = "depot.toml";
24 25
25#[derive(Clap)] 26#[derive(Clap)]
26#[clap(version = "0.1", author = "d464")]
27#[clap(setting = AppSettings::ColoredHelp)] 27#[clap(setting = AppSettings::ColoredHelp)]
28struct Opts { 28struct Opts {
29 /// Path to the depot file. 29 /// Path to the depot file.
@@ -37,8 +37,11 @@ struct Opts {
37 /// A level of verbosity, and can be used multiple times 37 /// A level of verbosity, and can be used multiple times
38 /// 38 ///
39 /// Level 0 - Warnings (Default) 39 /// Level 0 - Warnings (Default)
40 ///
40 /// Level 1 - Info 41 /// Level 1 - Info
42 ///
41 /// Level 2 - Debug 43 /// Level 2 - Debug
44 ///
42 /// Level 3 - Trace 45 /// Level 3 - Trace
43 #[clap(short, long, parse(from_occurrences))] 46 #[clap(short, long, parse(from_occurrences))]
44 verbose: i32, 47 verbose: i32,