From 1ece38a4c455067e84961738874fc0fc11b4f6b7 Mon Sep 17 00:00:00 2001 From: Nisheet Sinvhal Date: Fri, 2 Nov 2018 00:43:19 +0530 Subject: [PATCH] Changed flag name --- src/app.rs | 2 +- src/clap_app.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app.rs b/src/app.rs index 7c3e0c3c..94dbfe2c 100644 --- a/src/app.rs +++ b/src/app.rs @@ -260,7 +260,7 @@ impl App { output_components, syntax_mapping, pager: self.matches.value_of("pager"), - italics: match self.matches.value_of("enable-italics") { + italics: match self.matches.value_of("italic-text") { Some("always") => true, _ => false }, diff --git a/src/clap_app.rs b/src/clap_app.rs index 89b799f8..c3c8d97b 100644 --- a/src/clap_app.rs +++ b/src/clap_app.rs @@ -321,8 +321,8 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> { .help("Show path to the configuration file."), ) .arg( - Arg::with_name("enable-italics") - .long("enable-italics") + Arg::with_name("italic-text") + .long("italic-text") .takes_value(true) .multiple(false) .value_name("always|*never*")