diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-03 23:43:17 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-03 23:43:17 +0100 |
commit | a2cd862d532aeb888aebacfa94ce41f59e5226f7 (patch) | |
tree | 5c180a4713f4de22912f462c178bcb96ee26bf5f /deploy-ruby-tasks | |
parent | 037579d9b1843b5696c148c31f84908e24a388e4 (diff) | |
download | bin-a2cd862d532aeb888aebacfa94ce41f59e5226f7.zip bin-a2cd862d532aeb888aebacfa94ce41f59e5226f7.tar.gz |
deploy-ruby-tasks: add help function
Diffstat (limited to 'deploy-ruby-tasks')
-rwxr-xr-x | deploy-ruby-tasks | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/deploy-ruby-tasks b/deploy-ruby-tasks index f3fae27..37d1186 100755 --- a/deploy-ruby-tasks +++ b/deploy-ruby-tasks @@ -1,5 +1,14 @@ #! /bin/sh +function help() { + echo "${0##*/} [dtcu] " + echo -e "\t-d --git-dir set GIT_DIR" + echo -e "\t-t --tasks-dir set TASKS_DIR" + echo -e "\t-c --no-create set NO_CREATE" + echo -e "\t-u --force-update set FORCE_UPDATE" + exit 0 +} + for arg in $@; do option=`echo "'$arg'" | cut -d'=' -f1 | tr -d "'"` value=`echo "'$arg'" | cut -d'=' -f2- | tr -d "'"` @@ -9,7 +18,7 @@ for arg in $@; do -t|--tasks-dir) TASKS_DIR=$value;; -c|--no-create) NO_CREATE=1;; -u|--force-update) FORCE_UPDATE=1;; - *) GIT_REMOTE=$arg;; + -h|--help) help;; esac done |