1
0
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:
sharkdp
2018-10-17 23:02:53 +02:00
parent 10965a6122
commit 8dc7e2efa3
3 changed files with 19 additions and 2 deletions
+5
View File
@@ -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)