Skip to content
Myr

Change clap CLI binary name to 'fd'

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by David Peter · parent f8e832f · Browse files · 2 files+3 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−2 removed

  • tests:+2 added−2 removed
  • other:+1 added−0 removed

2 files+3 added−2 removed

modified:src/cli.rs+1 added
81 unmodified lines
82}8384#[derive(Parser)]85#[command(86 name = "fd",87 version,88 after_long_help = "Bugs can be reported on GitHub: https://github.com/sharkdp/fd/issues",89 args_override_self = true,90 group(ArgGroup::new("execs").args(&["exec", "exec_batch", "list_details"]).conflicts_with_all(&[
756 unmodified lines
modified:tests/tests.rs+2 added-2 removed
1479 unmodified lines
1480 te.assert_failure_with_error(1481 &["foo", "--exec-batch", "echo", "{}", "{}"],1482 "error: Only one placeholder allowed for batch commands\n\1483 \n\1484 Usage: fd-find [OPTIONS] [pattern] [path]...\n\1484 Usage: fd [OPTIONS] [pattern] [path]...\n\1485 \n\1486 For more information try '--help'\n\1487 ",1488 );
11 unmodified lines
1500 te.assert_failure_with_error(1501 &["foo", "--exec-batch", "echo {}"],1502 "error: First argument of exec-batch is expected to be a fixed executable\n\1503 \n\1504 Usage: fd-find [OPTIONS] [pattern] [path]...\n\1504 Usage: fd [OPTIONS] [pattern] [path]...\n\1505 \n\1506 For more information try '--help'\n\1507 ",1508 );
660 unmodified lines