Changed flag name

This commit is contained in:
Nisheet Sinvhal 2018-11-02 00:43:19 +05:30 committed by David Peter
parent e90308e1f8
commit 1ece38a4c4
2 changed files with 3 additions and 3 deletions

View file

@ -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
},

View file

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