diff --git a/sumsel.sh b/sumsel.sh index 2b21ce6..15637e0 100755 --- a/sumsel.sh +++ b/sumsel.sh @@ -1,5 +1,7 @@ #!/bin/bash +VERSION="0.2" + LOCK_DIR=/var/lock SIM_EXAMPLE_FILE=./res/test.wav @@ -26,17 +28,26 @@ UPL_SUFFIX=sumsi usage() { echo "Usage: $0 [-h] (-s|-r|-t) [-C ]" 1>&2; echo -e '\t-h Usage' 1>&2; + echo -e '\t-v Version' 1>&2; + echo -e '' 1>&2; echo -e '\t-s Simulation' 1>&2; echo -e '\t-r Aufnahme' 1>&2; echo -e '\t-c Konvertierung' 1>&2; + echo -e '' 1>&2; echo -e '\t-C Konfiguration laden' 1>&2; + echo "" 1>&2; + echo "Doku: https://git.hs42.de/hs/sumsel" 1>&2; exit 1; } mode='' -while getopts ":hsrcC:" options; +while getopts ":hsrcC:v" options; do case "${options}" in + v) + echo "$0 version ${VERSION}" 1>&2; + exit 1 + ;; h) usage ;;