Add colored help output

This commit is contained in:
Yusuf Redzic 2020-07-06 21:09:25 -05:00
parent 37c1ada664
commit ae73c733fb

View File

@ -3,7 +3,7 @@ use std::{
io::{stdout, BufWriter, Write}, io::{stdout, BufWriter, Write},
}; };
use clap::{arg_enum, App, Arg}; use clap::{arg_enum, App, AppSettings, Arg};
#[cfg(not(feature = "wasm"))] #[cfg(not(feature = "wasm"))]
use grass::from_path; use grass::from_path;
@ -31,6 +31,7 @@ fn main() {}
#[cfg_attr(feature = "profiling", inline(never))] #[cfg_attr(feature = "profiling", inline(never))]
fn main() -> std::io::Result<()> { fn main() -> std::io::Result<()> {
let matches = App::new("grass") let matches = App::new("grass")
.setting(AppSettings::ColoredHelp)
.version(env!("CARGO_PKG_VERSION")) .version(env!("CARGO_PKG_VERSION"))
.about("SCSS Compiler in rust") .about("SCSS Compiler in rust")
.version_short("v") .version_short("v")