diff options
author | Akshay <[email protected]> | 2020-11-06 15:16:57 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2020-11-06 15:16:57 +0000 |
commit | 358a2279b9588b9285e4594b75d7b6af65a92c23 (patch) | |
tree | ab252990c799e390a5a80a15beb0ccf899f68fb0 | |
parent | cf7005dc1550119a1b0b5f713d2f31cc8b7da065 (diff) | |
parent | 6093a7ef233a16140b2c4a536e3c2f8acbbe455d (diff) |
Merge branch 'color' of https://github.com/pickfire/eva into colored-help
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 94f4cbc..75c33bb 100644 --- a/src/main.rs +++ b/src/main.rs | |||
@@ -22,7 +22,7 @@ use crate::parse::*; | |||
22 | use crate::readline::*; | 22 | use crate::readline::*; |
23 | 23 | ||
24 | // extern crates | 24 | // extern crates |
25 | use clap::{App, Arg}; | 25 | use clap::{App, AppSettings, Arg}; |
26 | use directories::{ProjectDirs, UserDirs}; | 26 | use directories::{ProjectDirs, UserDirs}; |
27 | use lazy_static::lazy_static; | 27 | use lazy_static::lazy_static; |
28 | use rustyline::error::ReadlineError; | 28 | use 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") |