git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/bin/mp3dirlist
diff options
context:
space:
mode:
authormail_redacted_for_web 2014-08-10 02:54:26 +0200
committermail_redacted_for_web 2014-08-10 02:54:26 +0200
commit9a7bdd871431148cee77aef5d7286cdaca2a06be (patch)
tree3a734074ae4f3cddc7a84ecd9cb12cb8148b4af1 /bin/mp3dirlist
parent2caec1c94dce9f2f14ada3e805cddfdeb2fe2914 (diff)
downloadmp3dir2html-9a7bdd871431148cee77aef5d7286cdaca2a06be.tar.bz2
Beginning of parameter implementation
Diffstat (limited to 'bin/mp3dirlist')
-rwxr-xr-xbin/mp3dirlist12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/mp3dirlist b/bin/mp3dirlist
index e0ce5db..81eeb66 100755
--- a/bin/mp3dirlist
+++ b/bin/mp3dirlist
@@ -9,6 +9,18 @@ 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
+}
+while getopts "ht:r:p:v" params; do
+ case $params in
+ "h")
+ m3l_help
+ ;;
+ esac
+done
+
if [ "$1" == "" ]; then
SDIR="*"
else