1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-04 19:01:44 +00:00

Changed italics to use-italic-text in config

Better placing of italics in help and also added long_help for it
This commit is contained in:
Nisheet Sinvhal
2018-11-04 22:38:33 +05:30
committed by David Peter
parent dc10246bd2
commit 18d1a3b973
4 changed files with 17 additions and 17 deletions
+2 -2
View File
@@ -77,7 +77,7 @@ pub struct Config<'a> {
/// Command to start the pager
pub pager: Option<&'a str>,
pub italics: bool,
pub use_italic_text: bool,
}
fn is_truecolor_terminal() -> bool {
@@ -260,7 +260,7 @@ impl App {
output_components,
syntax_mapping,
pager: self.matches.value_of("pager"),
italics: match self.matches.value_of("italic-text") {
use_italic_text: match self.matches.value_of("italic-text") {
Some("always") => true,
_ => false,
},