Add colored help

This commit is contained in:
Ivan Tham 2020-11-05 10:29:27 +08:00
parent d31097959f
commit 6093a7ef23

View File

@ -22,7 +22,7 @@ use crate::parse::*;
use crate::readline::*;
// extern crates
use clap::{App, Arg};
use clap::{App, AppSettings, Arg};
use directories::{ProjectDirs, UserDirs};
use lazy_static::lazy_static;
use rustyline::error::ReadlineError;
@ -150,6 +150,7 @@ fn parse_arguments() -> Configuration {
.version(env!("CARGO_PKG_VERSION"))
.author(env!("CARGO_PKG_AUTHORS"))
.about(env!("CARGO_PKG_DESCRIPTION"))
.global_setting(AppSettings::ColoredHelp)
.arg(
Arg::with_name("fix")
.short("f")