summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgallery.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/gallery.sh b/gallery.sh
index da1dde7..48efc0e 100755
--- a/gallery.sh
+++ b/gallery.sh
@@ -44,8 +44,9 @@ datetime+=" UTC"
function usage {
returnCode="$1"
- echo -e "Usage: $me [-t <title>] [-h]:
+ echo -e "Usage: $me [-t <title>] [-d <thumbdir>] [-h]:
[-t <title>]\t sets the title (default: $title)
+ [-d <thumbdir>]\t sets the thumbdir (default: $thumbdir)
[-h]\t\t displays help (this message)"
exit "$returnCode"
}
@@ -69,11 +70,14 @@ function getFileSize(){
echo "$myfilesize"
}
-while getopts ":t:h" opt; do
+while getopts ":t:d:h" opt; do
case $opt in
t)
title="$OPTARG"
;;
+ d)
+ thumbdir="$OPTARG"
+ ;;
h)
usage 0
;;