refactor: Rename '--target-*' options

This commit is contained in:
Serge Guzik 2019-02-16 17:47:37 +02:00
parent bd33a10f07
commit 85c9732271
2 changed files with 9 additions and 9 deletions

View File

@ -92,9 +92,9 @@ Options:
--pull check if more recent JDK/JRE distro is available; --pull check if more recent JDK/JRE distro is available;
by default latest cached version that matches by default latest cached version that matches
"--java-version" is used "--java-version" is used
--target-linux create binary for Linux --linux create binary for Linux
--target-macos create binary for macOS --macos create binary for macOS
--target-windows create binary for Windows --windows create binary for Windows
if no targets are specified then binaries for if no targets are specified then binaries for
all targets are created all targets are created
--jvm-impl jvm implementation: hotspot or openj9 --jvm-impl jvm implementation: hotspot or openj9

12
warp4j
View File

@ -22,9 +22,9 @@ function print_help {
echo ' --pull check if more recent JDK/JRE distro is available;' echo ' --pull check if more recent JDK/JRE distro is available;'
echo ' by default latest cached version that matches' echo ' by default latest cached version that matches'
echo ' "--java-version" is used' echo ' "--java-version" is used'
echo ' --target-linux create binary for Linux' echo ' --linux create binary for Linux'
echo ' --target-macos create binary for macOS' echo ' --macos create binary for macOS'
echo ' --target-windows create binary for Windows' echo ' --windows create binary for Windows'
echo ' if no targets are specified then binaries for' echo ' if no targets are specified then binaries for'
echo ' all targets are created' echo ' all targets are created'
echo ' --jvm-impl jvm implementation: hotspot or openj9' echo ' --jvm-impl jvm implementation: hotspot or openj9'
@ -95,15 +95,15 @@ while [[ $# -gt 0 ]]; do
PULL=true PULL=true
shift shift
;; ;;
--target-linux) --linux)
TARGETS+=($LIN) TARGETS+=($LIN)
shift shift
;; ;;
--target-macos) --macos)
TARGETS+=($MAC) TARGETS+=($MAC)
shift shift
;; ;;
--target-windows) --windows)
TARGETS+=($WIN) TARGETS+=($WIN)
shift shift
;; ;;