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 66e064f..a7fb81d 100755
--- a/bin/rcdn
+++ b/bin/rcdn
@@ -10,10 +10,12 @@ handle_command_line() {
local dotfiles_dirs=
local files=
local excludes=
+ local includes=
- while getopts Vqve:t:d: opt; do
+ while getopts VqvI:e: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));;
@@ -38,6 +40,9 @@ handle_command_line() {
for exclude in $excludes; do
LS_ARGS="$LS_ARGS -e $exclude"
done
+ for include in $includes; do
+ LS_ARGS="$LS_ARGS -I $include"
+ done
LS_ARGS="$LS_ARGS $files"
$DEBUG "LS_ARGS: $LS_ARGS"