1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-10 20:01:45 +00:00

Add --no-config option

This commit is contained in:
sharkdp
2018-10-11 21:40:14 +02:00
committed by David Peter
parent b48f0fe389
commit 495e7fd3b1
4 changed files with 11 additions and 1 deletions
+3 -1
View File
@@ -98,7 +98,9 @@ impl App {
}
fn matches(interactive_output: bool) -> ArgMatches<'static> {
let args = if wild::args_os().nth(1) == Some("cache".into()) {
let args = if wild::args_os().nth(1) == Some("cache".into())
|| wild::args_os().any(|arg| arg == "--no-config")
{
// Skip the arguments in bats config file
wild::args_os().collect::<Vec<_>>()