aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Tham <[email protected]>2020-11-05 02:29:27 +0000
committerIvan Tham <[email protected]>2020-11-05 02:29:27 +0000
commit6093a7ef233a16140b2c4a536e3c2f8acbbe455d (patch)
treefedcb0dcbc50c35231662f0b5740f2088af292ce
parentd31097959f29d7b82dabfd050eb988a896c2e44b (diff)
Add colored help
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index bc22ce2..5b7fdb4 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -22,7 +22,7 @@ use crate::parse::*;
22use crate::readline::*; 22use crate::readline::*;
23 23
24// extern crates 24// extern crates
25use clap::{App, Arg}; 25use clap::{App, AppSettings, Arg};
26use directories::{ProjectDirs, UserDirs}; 26use directories::{ProjectDirs, UserDirs};
27use lazy_static::lazy_static; 27use lazy_static::lazy_static;
28use rustyline::error::ReadlineError; 28use rustyline::error::ReadlineError;
@@ -150,6 +150,7 @@ fn parse_arguments() -> Configuration {
150 .version(env!("CARGO_PKG_VERSION")) 150 .version(env!("CARGO_PKG_VERSION"))
151 .author(env!("CARGO_PKG_AUTHORS")) 151 .author(env!("CARGO_PKG_AUTHORS"))
152 .about(env!("CARGO_PKG_DESCRIPTION")) 152 .about(env!("CARGO_PKG_DESCRIPTION"))
153 .global_setting(AppSettings::ColoredHelp)
153 .arg( 154 .arg(
154 Arg::with_name("fix") 155 Arg::with_name("fix")
155 .short("f") 156 .short("f")