From ae73c733fb61211e49762e9d7ef48aaed4b47c78 Mon Sep 17 00:00:00 2001 From: Yusuf Redzic Date: Mon, 6 Jul 2020 21:09:25 -0500 Subject: [PATCH] Add colored help output --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index c9704e3..73b2655 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,7 +3,7 @@ use std::{ io::{stdout, BufWriter, Write}, }; -use clap::{arg_enum, App, Arg}; +use clap::{arg_enum, App, AppSettings, Arg}; #[cfg(not(feature = "wasm"))] use grass::from_path; @@ -31,6 +31,7 @@ fn main() {} #[cfg_attr(feature = "profiling", inline(never))] fn main() -> std::io::Result<()> { let matches = App::new("grass") + .setting(AppSettings::ColoredHelp) .version(env!("CARGO_PKG_VERSION")) .about("SCSS Compiler in rust") .version_short("v")