diff options
| -rwxr-xr-x | tools/build-docker-image | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/build-docker-image b/tools/build-docker-image index 370463dd2..df58be807 100755 --- a/tools/build-docker-image +++ b/tools/build-docker-image @@ -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 $IMGDIR/.buildconf ] && . $IMGDIR/.buildconf [ -f $TOPDIR/.buildconf ] && . $TOPDIR/.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 ;; |
