diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-01-06 16:11:53 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-01-06 16:11:53 +0000 |
| commit | 38e88c27605602a37ec0347664098b68ae574173 (patch) | |
| tree | 1a8c5919c9c4aeec8b7ef8de4f0b7d1a975cfd81 /tools | |
| parent | a5bd2f2d5d0caff7348f5eba6cd6223f858c344b (diff) | |
| parent | ed493b84e0ba5ef856b7534268fdb8dbeaea6d6b (diff) | |
| download | kolla-38e88c27605602a37ec0347664098b68ae574173.tar.gz kolla-38e88c27605602a37ec0347664098b68ae574173.zip | |
Merge "Make build script respond to `-h` option"
Diffstat (limited to 'tools')
| -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 080eb768b..ac1277621 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 $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 ;; |
