mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-28 08:02:28 +01:00
cargo fmt
This commit is contained in:
@@ -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()) {
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user