From 6f65d2804ce500bb0e6e88544cb23d59de9b71b6 Mon Sep 17 00:00:00 2001 From: Wei Shen Date: Tue, 6 Aug 2019 22:51:37 +0800 Subject: [PATCH] fix typo --- README.md | 8 ++++---- brename.go | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 72c9a5e..48a5c83 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,7 @@ Attention: 1. Paths starting with "." is ignored. 2. Flag -f/--include-filters and -F/--exclude-filters support multiple values, e.g., -f ".html" -f ".htm". - But ATTENTION: comma in filter is treated as separater of multiple filters. + But ATTENTION: comma in filter is treated as separator of multiple filters. Special replacement symbols: @@ -143,12 +143,12 @@ Examples: Flags: -d, --dry-run print rename operations but do not run - -F, --exclude-filters strings exclude file filter(s) (regular expression, case ignored). multiple values supported, e.g., -F ".html" -F ".htm", but ATTENTION: comma in filter is treated as separater of multiple filters + -F, --exclude-filters strings exclude file filter(s) (regular expression, case ignored). multiple values supported, e.g., -F ".html" -F ".htm", but ATTENTION: comma in filter is treated as separator of multiple filters -U, --force-undo continue undo even when some operation failed -h, --help help for brename -i, --ignore-case ignore case -e, --ignore-ext ignore file extension. i.e., replacement does not change file extension - -f, --include-filters strings include file filter(s) (regular expression, case ignored). multiple values supported, e.g., -f ".html" -f ".htm", but ATTENTION: comma in filter is treated as separater of multiple filters (default [.]) + -f, --include-filters strings include file filter(s) (regular expression, case ignored). multiple values supported, e.g., -f ".html" -f ".htm", but ATTENTION: comma in filter is treated as separator of multiple filters (default [.]) -D, --including-dir rename directories -K, --keep-key keep the key as value when no value found for the key -I, --key-capt-idx int capture variable index of key (1-based) (default 1) @@ -156,7 +156,7 @@ Flags: -k, --kv-file string tab-delimited key-value file for replacing key with value when using "{kv}" in -r (--replacement) -l, --list only list paths that match pattern -a, --list-abs list absolute path, using along with -l/--list - -s, --list-sep string separater for list of found paths (default "\n") + -s, --list-sep string separator for list of found paths (default "\n") --max-depth int maximum depth for recursive search (0 for no limit) --nr-width int minimum width for {nr} in flag -r/--replacement. e.g., formating "1" to "001" by --nr-width 3 (default 1) --only-dir only rename directories diff --git a/brename.go b/brename.go index 454ac3e..e8fb5f8 100644 --- a/brename.go +++ b/brename.go @@ -282,11 +282,11 @@ func init() { RootCmd.Flags().BoolP("ignore-case", "i", false, "ignore case") RootCmd.Flags().BoolP("ignore-ext", "e", false, "ignore file extension. i.e., replacement does not change file extension") - RootCmd.Flags().StringSliceP("include-filters", "f", []string{"."}, `include file filter(s) (regular expression, case ignored). multiple values supported, e.g., -f ".html" -f ".htm", but ATTENTION: comma in filter is treated as separater of multiple filters`) - RootCmd.Flags().StringSliceP("exclude-filters", "F", []string{}, `exclude file filter(s) (regular expression, case ignored). multiple values supported, e.g., -F ".html" -F ".htm", but ATTENTION: comma in filter is treated as separater of multiple filters`) + RootCmd.Flags().StringSliceP("include-filters", "f", []string{"."}, `include file filter(s) (regular expression, case ignored). multiple values supported, e.g., -f ".html" -f ".htm", but ATTENTION: comma in filter is treated as separator of multiple filters`) + RootCmd.Flags().StringSliceP("exclude-filters", "F", []string{}, `exclude file filter(s) (regular expression, case ignored). multiple values supported, e.g., -F ".html" -F ".htm", but ATTENTION: comma in filter is treated as separator of multiple filters`) RootCmd.Flags().BoolP("list", "l", false, `only list paths that match pattern`) - RootCmd.Flags().StringP("list-sep", "s", "\n", `separater for list of found paths`) + RootCmd.Flags().StringP("list-sep", "s", "\n", `separator for list of found paths`) RootCmd.Flags().BoolP("list-abs", "a", false, `list absolute path, using along with -l/--list`) RootCmd.Flags().StringP("kv-file", "k", "", @@ -462,7 +462,7 @@ Attention: 1. Paths starting with "." is ignored. 2. Flag -f/--include-filters and -F/--exclude-filters support multiple values, e.g., -f ".html" -f ".htm". - But ATTENTION: comma in filter is treated as separater of multiple filters. + But ATTENTION: comma in filter is treated as separator of multiple filters. Special replacement symbols: