From 0fbc27dbe296e03b4001586a7e29780328cbc657 Mon Sep 17 00:00:00 2001 From: Mike Burns Date: Sun, 11 Aug 2013 15:48:07 +0200 Subject: 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. --- bin/rcdn | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin/rcdn') diff --git a/bin/rcdn b/bin/rcdn index 99812aa..df882e8 100755 --- a/bin/rcdn +++ b/bin/rcdn @@ -26,15 +26,15 @@ handle_command_line() { local excludes= local includes= - while getopts VqvI:e:t:d: opt; do + while getopts VqvI:x:t:d: opt; do case "$opt" in - e) excludes="$excludes $OPTARG";; I) includes="$includes $OPTARG";; t) arg_tags="$arg_tags $OPTARG" ;; v) verbosity=$(($verbosity + 1));; q) verbosity=$(($verbosity - 1));; d) dotfiles_dirs="$dotfiles_dirs $OPTARG" ;; - V) version=1 + V) version=1 ;; + x) excludes="$excludes $OPTARG" ;; esac done shift $(($OPTIND-1)) @@ -52,7 +52,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" -- cgit v1.2.3