summaryrefslogtreecommitdiffstats
path: root/mltk
diff options
context:
space:
mode:
authorJonathan Bauer2014-01-16 16:45:59 +0100
committerJonathan Bauer2014-01-16 16:45:59 +0100
commit802fb95bcf9d399a40df4452672c5d9e3b862c96 (patch)
treefe45b0cc61adc4b22a331b3a07c53d187f06ee8c /mltk
parentupdated to the new year! (diff)
parent[mltk] added -h and --help - options (diff)
downloadtm-scripts-802fb95bcf9d399a40df4452672c5d9e3b862c96.tar.gz
tm-scripts-802fb95bcf9d399a40df4452672c5d9e3b862c96.tar.xz
tm-scripts-802fb95bcf9d399a40df4452672c5d9e3b862c96.zip
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'mltk')
-rwxr-xr-xmltk3
1 files changed, 3 insertions, 0 deletions
diff --git a/mltk b/mltk
index 6a378773..95b924d5 100755
--- a/mltk
+++ b/mltk
@@ -183,6 +183,9 @@ read_params() {
if [[ "$1" != -* ]]; then
TARGET="$1"
shift
+ elif [[ "$1" == "-h" || "$1" == "--help" ]]; then
+ print_usage
+ exit 1
elif [[ "$1" != "-n" ]]; then
perror "A target is required. None given."
fi