diff --git a/README.md b/README.md index 9f416b4..3096def 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/cmd/mmv/main.go b/cmd/mmv/main.go index d386b29..5170915 100644 --- a/cmd/mmv/main.go +++ b/cmd/mmv/main.go @@ -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 {