1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-28 08:02:28 +01:00

cargo fmt

This commit is contained in:
Keith Hall
2025-09-27 23:54:52 +03:00
parent f605db22e3
commit 6540f38827
2 changed files with 7 additions and 2 deletions

View File

@@ -60,7 +60,10 @@ impl App {
// Check if we should skip config file processing for special arguments // Check if we should skip config file processing for special arguments
// that don't require full application setup (help, version, diagnostic) // that don't require full application setup (help, version, diagnostic)
let should_skip_config = wild::args_os().any(|arg| { 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()) { let args = if wild::args_os().nth(1) == Some("cache".into()) {

View File

@@ -1300,7 +1300,9 @@ fn help_works_with_invalid_config() {
.arg("--help") .arg("--help")
.assert() .assert()
.success() .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 // -h should also work
bat_with_config() bat_with_config()