From 2b55ae35bbc7dde245fe31f092641d2b5f430ce3 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 7 Nov 2016 21:05:07 -0800 Subject: [PATCH] Use colored help message (#32) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 💙💜💚❤️💛 --- src/app.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index b930232..cb2a529 100644 --- a/src/app.rs +++ b/src/app.rs @@ -3,7 +3,7 @@ extern crate regex; use std::{io, fs, env, process}; use std::collections::BTreeMap; -use self::clap::{App, Arg}; +use self::clap::{App, Arg, AppSettings}; use super::{Slurp, RunError}; macro_rules! warn { @@ -26,6 +26,7 @@ pub fn app() { .version("0.2.16") .author("Casey Rodarmor ") .about("Just a command runner - https://github.com/casey/just") + .setting(AppSettings::ColoredHelp) .arg(Arg::with_name("list") .short("l") .long("list")