summaryrefslogtreecommitdiff
path: root/bin/lsrc
diff options
context:
space:
mode:
authorGravatar Mike Burns <mike@mike-burns.com>2013-08-11 15:48:07 +0200
committerGravatar Mike Burns <mike@mike-burns.com>2013-08-11 15:48:07 +0200
commit0fbc27dbe296e03b4001586a7e29780328cbc657 (patch)
treedf0e2c654f4235939fdc37def18f6baf92e43081 /bin/lsrc
parent63ab42206f25e181f626ec0c7ddad045fa27846c (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/lsrc')
-rwxr-xr-xbin/lsrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/lsrc b/bin/lsrc
index 9ed2a71..880bf05 100755
--- a/bin/lsrc
+++ b/bin/lsrc
@@ -151,15 +151,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))