mirror of
https://github.com/sharkdp/bat
synced 2024-11-27 06:10:20 +00:00
Use unreachable!(…)
This commit is contained in:
parent
f5531cc7fa
commit
1fbdef06aa
1 changed files with 2 additions and 1 deletions
|
@ -169,7 +169,8 @@ impl App {
|
|||
|| match self.matches.value_of("color") {
|
||||
Some("always") => true,
|
||||
Some("never") => false,
|
||||
_ => env::var_os("NO_COLOR").is_none() && self.interactive_output,
|
||||
Some("auto") => env::var_os("NO_COLOR").is_none() && self.interactive_output,
|
||||
_ => unreachable!("other values for --color are not allowed"),
|
||||
},
|
||||
paging_mode,
|
||||
term_width: maybe_term_width.unwrap_or(Term::stdout().size().1 as usize),
|
||||
|
|
Loading…
Reference in a new issue