diff options
| author | Richard Hansen <rhansen@rhansen.org> | 2016-01-23 23:24:28 -0500 |
|---|---|---|
| committer | Richard Hansen <rhansen@rhansen.org> | 2016-01-31 16:25:37 -0500 |
| commit | bc7332f3462295320bf76e056a5ab6206ffa4d6b (patch) | |
| tree | fe44fa554cc5e797763eef35a06ae3f30705cffb /tools | |
| parent | 5dcceb88a124f2ba8a6c4475bd2c87d629f54950 (diff) | |
| download | gitlab-bc7332f3462295320bf76e056a5ab6206ffa4d6b.tar.gz | |
fix usage error message
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/build_test_env.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/build_test_env.sh b/tools/build_test_env.sh index 38c31cc..6b8e23c 100755 --- a/tools/build_test_env.sh +++ b/tools/build_test_env.sh @@ -29,7 +29,9 @@ PY_VER=2 while getopts :p: opt "$@"; do case $opt in p) PY_VER=$OPTARG;; - *) fatal "Unknown option: $opt";; + :) fatal "Option -${OPTARG} requires a value";; + '?') fatal "Unknown option: -${OPTARG}";; + *) fatal "Internal error: opt=${opt}";; esac done |
