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:
committed by
David Peter
parent
dc10246bd2
commit
18d1a3b973
+2
-2
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user