diff --git a/doc/fd.1 b/doc/fd.1 index 3c8b072..83b7948 100644 --- a/doc/fd.1 +++ b/doc/fd.1 @@ -448,8 +448,9 @@ Note that all subsequent positional arguments are considered to be arguments to It is therefore recommended to place the \-x/\-\-exec option last. Alternatively, you can supply a ';' argument to end the argument list and continue with more fd options. Most shells require ';' to be escaped: '\\;'. -This option can be specified multiple times. Commands for the same search result run sequentially -in the order they are given. In that case, you must supply a ';' argument for all but the last command. +Specify this option multiple times to run several commands for each file or directory found. +For each file or directory, fd runs these commands one after another in the order they appear +on the command line. In that case, you must supply a ';' argument for all but the last command. When running in parallel, fd buffers command output and prints it together for each search result, without interleaving it with command output for other results. diff --git a/src/cli.rs b/src/cli.rs index e9dd8f8..eefbf37 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -899,7 +899,8 @@ impl clap::Args for Exec { All positional arguments following --exec are considered to be arguments to the command - not to fd. \ It is therefore recommended to place the '-x'/'--exec' option last. \ Use '\\;' to terminate the command template if you need to continue passing fd arguments afterwards.\n\n\ - This option can be specified multiple times. Commands for the same search result run sequentially in the order they are given. \ + Specify this option multiple times to run several commands for each file or directory found. \ + For each file or directory, fd runs these commands one after another in the order they appear on the command line. \ Terminate each command except the last with '\\;'. \ When running in parallel, fd buffers command output and prints it together for each search result, \ without interleaving it with command output for other results.\n\n\