Skip to content

Commit bc7332f

Browse files
committed
fix usage error message
1 parent 5dcceb8 commit bc7332f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/build_test_env.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ PY_VER=2
2929
while getopts :p: opt "$@"; do
3030
case $opt in
3131
p) PY_VER=$OPTARG;;
32-
*) fatal "Unknown option: $opt";;
32+
:) fatal "Option -${OPTARG} requires a value";;
33+
'?') fatal "Unknown option: -${OPTARG}";;
34+
*) fatal "Internal error: opt=${opt}";;
3335
esac
3436
done
3537

0 commit comments

Comments
 (0)