mirror of
https://github.com/sharkdp/bat.git
synced 2025-03-13 22:28:26 +00:00
Merge eb36513bce522b08c20790bee3d43ca8791114cd into 23fd20048272922c87ea4759f5b7a52ceb8e6d1a
This commit is contained in:
commit
95fc22fecf
@ -42,6 +42,7 @@
|
||||
- Update the Lisp syntax, see #2970 (@ccqpein)
|
||||
- Use bat's ANSI iterator during tab expansion, see #2998 (@eth-p)
|
||||
- Support 'statically linked binary' for aarch64 in 'Release' page, see #2992 (@tzq0301)
|
||||
- `--theme` now provides a short list of all themes if the given theme does not exist, see #3009 (@monkeydom)
|
||||
|
||||
## Syntaxes
|
||||
|
||||
|
@ -245,7 +245,12 @@ impl HighlightingAssets {
|
||||
return self.get_theme("ansi");
|
||||
}
|
||||
if !theme.is_empty() {
|
||||
bat_warning!("Unknown theme '{}', using default.", theme)
|
||||
let all_themes: Vec<&str> = self.get_theme_set().themes().collect();
|
||||
bat_warning!(
|
||||
"Unknown theme '{}', using default. (Available themes: {})",
|
||||
theme,
|
||||
all_themes.join(", ")
|
||||
);
|
||||
}
|
||||
self.get_theme_set()
|
||||
.get(self.fallback_theme.unwrap_or_else(Self::default_theme))
|
||||
|
Loading…
x
Reference in New Issue
Block a user