mirror of
https://github.com/sharkdp/bat
synced 2024-11-16 21:25:56 +00:00
Linting
This commit is contained in:
parent
1ece38a4c4
commit
44bdae0212
@ -77,7 +77,7 @@ pub struct Config<'a> {
|
|||||||
/// Command to start the pager
|
/// Command to start the pager
|
||||||
pub pager: Option<&'a str>,
|
pub pager: Option<&'a str>,
|
||||||
|
|
||||||
pub italics: bool
|
pub italics: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
fn is_truecolor_terminal() -> bool {
|
fn is_truecolor_terminal() -> bool {
|
||||||
@ -262,7 +262,7 @@ impl App {
|
|||||||
pager: self.matches.value_of("pager"),
|
pager: self.matches.value_of("pager"),
|
||||||
italics: match self.matches.value_of("italic-text") {
|
italics: match self.matches.value_of("italic-text") {
|
||||||
Some("always") => true,
|
Some("always") => true,
|
||||||
_ => false
|
_ => false,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -329,7 +329,7 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
|
|||||||
.possible_values(&["always", "never"])
|
.possible_values(&["always", "never"])
|
||||||
.default_value("never")
|
.default_value("never")
|
||||||
.hide_default_value(true)
|
.hide_default_value(true)
|
||||||
.help("Use italics in output (always, *never*)")
|
.help("Use italics in output (always, *never*)"),
|
||||||
)
|
)
|
||||||
.subcommand(
|
.subcommand(
|
||||||
SubCommand::with_name("cache")
|
SubCommand::with_name("cache")
|
||||||
|
Loading…
Reference in New Issue
Block a user