From 7347da4d76d6bf49e05360f3e82b1489df38bb34 Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Thu, 1 Nov 2018 19:23:39 +0100 Subject: Make help colorful --- 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 8005dfb..29bb468 100644 --- a/src/main.rs +++ b/src/main.rs @@ -85,12 +85,13 @@ fn is_valid_auth(auth: String) -> Result<(), String> { } pub fn parse_args() -> MiniserveConfig { - use clap::{App, Arg}; + use clap::{App, Arg, AppSettings}; let matches = App::new(crate_name!()) .version(crate_version!()) .author(crate_authors!()) .about(crate_description!()) + .global_setting(AppSettings::ColoredHelp) .arg( Arg::with_name("verbose") .short("v") -- cgit v1.2.3