Report a readable diagnostic on empty -J argument in CLI
This commit is contained in:
committed by
Alexander Udalov
parent
81a495b494
commit
9a7ef11043
@@ -52,6 +52,10 @@ while [ $# -gt 0 ]; do
|
||||
;;
|
||||
-J*)
|
||||
java_args=("${java_args[@]}" "${1:2}")
|
||||
if [ "x${1:2}" = "x" ]; then
|
||||
echo "error: empty -J argument"
|
||||
exit 1
|
||||
fi
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
|
||||
Reference in New Issue
Block a user