diff --git a/src/bin/bat/app.rs b/src/bin/bat/app.rs index c784eabf..a8e1e0db 100644 --- a/src/bin/bat/app.rs +++ b/src/bin/bat/app.rs @@ -60,7 +60,10 @@ impl App { // Check if we should skip config file processing for special arguments // that don't require full application setup (help, version, diagnostic) let should_skip_config = wild::args_os().any(|arg| { - matches!(arg.to_str(), Some("-h" | "--help" | "-V" | "--version" | "--diagnostic" | "--diagnostics")) + matches!( + arg.to_str(), + Some("-h" | "--help" | "-V" | "--version" | "--diagnostic" | "--diagnostics") + ) }); let args = if wild::args_os().nth(1) == Some("cache".into()) { diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 6b9d7263..75021eb5 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -1300,7 +1300,9 @@ fn help_works_with_invalid_config() { .arg("--help") .assert() .success() - .stdout(predicate::str::contains("A cat(1) clone with syntax highlighting")); + .stdout(predicate::str::contains( + "A cat(1) clone with syntax highlighting", + )); // -h should also work bat_with_config()