Change clap CLI binary name to 'fd'

This commit is contained in:
David Peter 2022-11-01 21:00:32 +01:00
parent f8e832f212
commit ac35b11dc8
2 changed files with 3 additions and 2 deletions

View File

@ -83,6 +83,7 @@ impl clap::Args for Negations {
#[derive(Parser)]
#[command(
name = "fd",
version,
after_long_help = "Bugs can be reported on GitHub: https://github.com/sharkdp/fd/issues",
args_override_self = true,

View File

@ -1481,7 +1481,7 @@ fn test_exec_batch() {
&["foo", "--exec-batch", "echo", "{}", "{}"],
"error: Only one placeholder allowed for batch commands\n\
\n\
Usage: fd-find [OPTIONS] [pattern] [path]...\n\
Usage: fd [OPTIONS] [pattern] [path]...\n\
\n\
For more information try '--help'\n\
",
@ -1501,7 +1501,7 @@ fn test_exec_batch() {
&["foo", "--exec-batch", "echo {}"],
"error: First argument of exec-batch is expected to be a fixed executable\n\
\n\
Usage: fd-find [OPTIONS] [pattern] [path]...\n\
Usage: fd [OPTIONS] [pattern] [path]...\n\
\n\
For more information try '--help'\n\
",