diff options
author | mail_redacted_for_web | 2014-08-10 02:54:26 +0200 |
---|---|---|
committer | mail_redacted_for_web | 2014-08-10 02:54:26 +0200 |
commit | 9a7bdd871431148cee77aef5d7286cdaca2a06be (patch) | |
tree | 3a734074ae4f3cddc7a84ecd9cb12cb8148b4af1 /bin | |
parent | 2caec1c94dce9f2f14ada3e805cddfdeb2fe2914 (diff) | |
download | mp3dir2html-9a7bdd871431148cee77aef5d7286cdaca2a06be.tar.bz2 |
Beginning of parameter implementation
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/mp3dirlist | 12 |
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 |