From 6093a7ef233a16140b2c4a536e3c2f8acbbe455d Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Thu, 5 Nov 2020 10:29:27 +0800 Subject: Add colored help --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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::*; 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") -- cgit v1.2.3