tweak the help for command arguments

This commit is contained in:
itchyny 2020-01-08 18:49:10 +09:00
parent b4c17c6004
commit 6b66f8bcdb
2 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@
Rename multiple files using your `$EDITOR`. The command name is named after _multi-mv_.
## Usage
```bash
mmv [files] ...
mmv file ...
```
This command opens the editor with the list of file names so edit and write.
The command finds the changed lines and renames all the corresponding files.

View file

@ -41,7 +41,7 @@ func run(args []string) int {
Version: %s (rev: %s/%s)
Synopsis:
%% %[1]s files ...
%% %[1]s file ...
Options:
`, name, version, revision, runtime.Version())
@ -61,7 +61,7 @@ Options:
}
args = fs.Args()
if len(args) == 0 {
fmt.Fprintf(os.Stderr, "usage: %s files ...\n", name)
fmt.Fprintf(os.Stderr, "usage: %s file ...\n", name)
return exitCodeErr
}
if err := rename(args); err != nil {