summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Lindholm <leif.lindholm@linaro.org>2014-10-03 11:14:39 +0100
committerLeif Lindholm <leif.lindholm@linaro.org>2014-10-03 11:14:39 +0100
commitaf0ba4f4190881e66c26ffc5c88463fb28d1ca0d (patch)
tree7d040c12472b8517844c637d52edfa408356533b
parent23bd4e516acd70fbb9615197736b0adb784773a6 (diff)
new-baseline: Hook in printusage
Usage instructions were included, but never called (doh!). Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
-rwxr-xr-xnew-baseline.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/new-baseline.sh b/new-baseline.sh
index af722d6..a0bc312 100755
--- a/new-baseline.sh
+++ b/new-baseline.sh
@@ -34,6 +34,10 @@ handle_cmdline()
shift
BASE_COMMIT="$1"
;;
+ -h)
+ printusage
+ exit 0
+ ;;
-r)
shift
RELEASE_STRING="$1"
@@ -47,6 +51,7 @@ handle_cmdline()
done
if [ X"$BASE_COMMIT" = X"" ]; then
+ printusage
die "no base commit specified!"
fi
}