summaryrefslogtreecommitdiff
path: root/bin/rcdn
diff options
context:
space:
mode:
Diffstat (limited to 'bin/rcdn')
-rwxr-xr-xbin/rcdn7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/rcdn b/bin/rcdn
index 8695c63..66e064f 100755
--- a/bin/rcdn
+++ b/bin/rcdn
@@ -9,9 +9,11 @@ handle_command_line() {
local version=0
local dotfiles_dirs=
local files=
+ local excludes=
- while getopts Vqvt:d: opt; do
+ while getopts Vqve:t:d: opt; do
case "$opt" in
+ e) excludes="$excludes $OPTARG";;
t) arg_tags="$arg_tags $OPTARG" ;;
v) verbosity=$(($verbosity + 1));;
q) verbosity=$(($verbosity - 1));;
@@ -33,6 +35,9 @@ handle_command_line() {
for dotfiles_dir in $dotfiles_dirs; do
LS_ARGS="$LS_ARGS -d $dotfiles_dir"
done
+ for exclude in $excludes; do
+ LS_ARGS="$LS_ARGS -e $exclude"
+ done
LS_ARGS="$LS_ARGS $files"
$DEBUG "LS_ARGS: $LS_ARGS"