diff --git a/tools/build-docker-image b/tools/build-docker-image index 080eb768b3..ac12776213 100755 --- a/tools/build-docker-image +++ b/tools/build-docker-image @@ -10,7 +10,7 @@ TAG=$(git rev-parse --short HEAD) usage () { cat <&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 ;;