mirror of
https://github.com/sharkdp/bat
synced 2026-08-10 20:01:45 +00:00
Added args
This commit is contained in:
committed by
David Peter
parent
c6a526f99c
commit
d702d6740c
@@ -76,6 +76,8 @@ pub struct Config<'a> {
|
||||
|
||||
/// Command to start the pager
|
||||
pub pager: Option<&'a str>,
|
||||
|
||||
pub italics: bool
|
||||
}
|
||||
|
||||
fn is_truecolor_terminal() -> bool {
|
||||
@@ -258,6 +260,10 @@ impl App {
|
||||
output_components,
|
||||
syntax_mapping,
|
||||
pager: self.matches.value_of("pager"),
|
||||
italics: match self.matches.value_of("enable-italics") {
|
||||
Some("always") => true,
|
||||
_ => false
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user