jlevy / repren

Rename anything
Apache License 2.0
347 stars 39 forks source link

clearer help about default mode #13

Open axil opened 8 years ago

axil commented 8 years ago

It is not clear from the documentation or from the --help page which mode is the default one.

I'd suggest either adding this into --help page:

- repren: Multi-pattern string replacement and file renaming
+ repren: Multi-pattern string replacement (default) and file renaming tool

or adding a command-line option:

  -p PAT_FILE, --patterns=PAT_FILE
                        file with multiple replacement patterns (see below)
+  --replace-only         do search/replace on file contents (default)
  --full                do file renames and search/replace on file contents
  --renames             do file renames only; do not modify file contents

or adding a simple example to the README that does nothing but a simple search-and-replace:

repren --from center --to centre .

This is the mode that I use most, but it was tricky to find out the exact syntax from the docs.

jlevy commented 8 years ago

Thanks — good point. If you'd like to file a PR the first option and any changes to the docs you think help (keeping the pydoc and readme in sync), I'd be glad to include it!