git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/bin/mp3dirlist
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mp3dirlist')
-rwxr-xr-xbin/mp3dirlist14
1 files changed, 9 insertions, 5 deletions
diff --git a/bin/mp3dirlist b/bin/mp3dirlist
index 81eeb66..4966614 100755
--- a/bin/mp3dirlist
+++ b/bin/mp3dirlist
@@ -10,21 +10,25 @@ DIRLISTEX='^Susperia|^B.*hse.*nkelz'
# CORE SCRIPT FROM HERE. DON'T FIDDLE IF YOU DON'T KNOW WHAT YOU'RE DOING.
function m3l_help {
- echo "Usage: $(basename $0) [options] [DIRECTORY...]"
- exit 0
+ echo "Usage: $(basename $0) [options]";echo
+ echo "Options:"
+ echo -e "\t-h\t\tPrint this help text and exit"
+ echo -e "\t-d DIRECTORY\tSpecify a directory to be scanned"
}
while getopts "ht:r:p:v" params; do
case $params in
"h")
m3l_help
+ exit 0
+ ;;
+ "d")
+ SDIR="$OPTARG"
;;
esac
done
-if [ "$1" == "" ]; then
+if [ "$SDIR" == "" ]; then
SDIR="*"
-else
- SDIR="$1 $2 $3 $4 $5 $6 $7 $8"
fi
function m3l_rm_verb {