Merge "Make build script respond to -h option"

This commit is contained in:
Jenkins 2015-01-06 16:11:53 +00:00 committed by Gerrit Code Review
commit 38e88c2760

View File

@ -10,7 +10,7 @@ TAG=$(git rev-parse --short HEAD)
usage () {
cat <<EOF
$0: usage: $0 [options]
Usage: $0 [options]
Options:
@ -25,14 +25,14 @@ EOF
[ -f $TOPDIR/.buildconf ] && . $TOPDIR/.buildconf
[ -f $IMGDIR/.buildconf ] && . $IMGDIR/.buildconf
ARGS=$(getopt -o 'n:t:pN' -l help,namespace:,push,release,tag:,no-cache -- "$@") || { usage >&2; exit 2; }
ARGS=$(getopt -o hn:t:pN -l help,namespace:,push,release,tag:,no-cache -- "$@") || { usage >&2; exit 2; }
eval set -- "$ARGS"
while :; do
case "$1" in
(--help) usage
(--help|-h) usage
exit 0
;;