diff options
author | Mike Burns <mike@mike-burns.com> | 2013-08-11 15:48:07 +0200 |
---|---|---|
committer | Mike Burns <mike@mike-burns.com> | 2013-08-11 15:48:07 +0200 |
commit | 0fbc27dbe296e03b4001586a7e29780328cbc657 (patch) | |
tree | df0e2c654f4235939fdc37def18f6baf92e43081 /bin/rcup | |
parent | 63ab42206f25e181f626ec0c7ddad045fa27846c (diff) |
Change `-e` to `-x`
Since the `-e` flag was for exclude patterns, and since it's rare for a
word with an `x` to come along, change the `-e` flag to `-x`. Better to
do it now before a new release.
Diffstat (limited to 'bin/rcup')
-rwxr-xr-x | bin/rcup | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -80,18 +80,18 @@ handle_command_line() { local always_copy=0 REPLACE_ALL=0 - while getopts CVqvfiI:e:t:d: opt; do + while getopts CVqvfiI:x:t:d: opt; do case "$opt" in C) always_copy=1 ;; d) dotfiles_dirs="$dotfiles_dirs $OPTARG" ;; - e) excludes="$excludes $OPTARG" ;; f) REPLACE_ALL=1 ;; i) REPLACE_ALL=0 ;; I) includes="$includes $OPTARG" ;; q) verbosity=$(($verbosity - 1)) ;; t) arg_tags="$arg_tags $OPTARG" ;; v) verbosity=$(($verbosity + 1)) ;; - V) version=1 + V) version=1 ;; + x) excludes="$excludes $OPTARG" ;; esac done shift $(($OPTIND-1)) @@ -113,7 +113,7 @@ handle_command_line() { LS_ARGS="$LS_ARGS -d $dotfiles_dir" done for exclude in $excludes; do - LS_ARGS="$LS_ARGS -e $exclude" + LS_ARGS="$LS_ARGS -x $exclude" done for include in $includes; do LS_ARGS="$LS_ARGS -I $include" |