mirror of
https://github.com/sharkdp/bat
synced 2026-07-27 17:41:42 +00:00
Add --config-file option
This commit is contained in:
@@ -50,6 +50,7 @@ use ansi_term::Style;
|
||||
|
||||
use app::{App, Config};
|
||||
use assets::{clear_assets, config_dir, HighlightingAssets};
|
||||
use config::config_file;
|
||||
use controller::Controller;
|
||||
use inputfile::InputFile;
|
||||
use style::{OutputComponent, OutputComponents};
|
||||
@@ -224,6 +225,10 @@ fn run() -> Result<bool> {
|
||||
} else if app.matches.is_present("list-themes") {
|
||||
list_themes(&config)?;
|
||||
|
||||
Ok(true)
|
||||
} else if app.matches.is_present("config-file") {
|
||||
println!("{}", config_file().to_string_lossy());
|
||||
|
||||
Ok(true)
|
||||
} else {
|
||||
run_controller(&config)
|
||||
|
||||
Reference in New Issue
Block a user