Merge pull request #20 from redzic/colored_help

Add colored help output
This commit is contained in:
Connor Skees 2020-07-06 22:23:11 -04:00 committed by GitHub
commit 1055060c2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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")