Benjamin Renard commited on 2012-03-22 16:53:16
Showing 1 changed files, with 3 additions and 1 deletions.
... | ... |
@@ -9,10 +9,12 @@ DEBUG=0 |
9 | 9 |
|
10 | 10 |
function usage() { |
11 | 11 |
[ -n "$1" ] && echo "[ERROR] $1" > /dev/stderr && echo |
12 |
- echo "usage : $0 [incr|FULL] [-d]" |
|
12 |
+ echo "usage : $0 [-h|--help] [incr|FULL] [-d]" |
|
13 | 13 |
[ -n "$1" ] && exit 1 || exit 0 |
14 | 14 |
} |
15 | 15 |
|
16 |
+[ "$TYPE" == "-h" -o "$TYPE" == "--help" ] && usage |
|
17 |
+ |
|
16 | 18 |
[ ! -n "$TYPE" ] && TYPE=full |
17 | 19 |
|
18 | 20 |
if [ "$TYPE" == "incr" -o "$TYPE" == "INCR" ] |
19 | 21 |