mirror of
https://github.com/itchyny/mmv.git
synced 2025-12-26 22:24:58 +08:00
tweak the help for command arguments
This commit is contained in:
parent
b4c17c6004
commit
6b66f8bcdb
2 changed files with 3 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue