File tree 1 file changed +3
-9
lines changed
1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,6 @@ classpathArgs () {
79
79
jvm_cp_args=" -classpath \" $toolchain \" "
80
80
}
81
81
82
- in_scripting_args=false
83
82
while [[ $# -gt 0 ]]; do
84
83
case " $1 " in
85
84
--) shift ; for arg; do addResidual " $arg " ; done ; set -- ;;
@@ -90,7 +89,8 @@ case "$1" in
90
89
# Optimize for short-running applications, see https://github.com/lampepfl/dotty/issues/222
91
90
-Oshort) addJava " -XX:+TieredCompilation -XX:TieredStopAtLevel=1" && shift ;;
92
91
-repl) PROG_NAME=" $ReplMain " && shift ;;
93
- -script) PROG_NAME=" $ScriptingMain " && target_script=" $2 " && in_scripting_args=true && shift && shift ;;
92
+ -script) PROG_NAME=" $ScriptingMain " && target_script=" $2 " && shift && shift
93
+ while [[ $# -gt 0 ]]; do addScripting " $1 " && shift ; done ;;
94
94
-compile) PROG_NAME=" $CompilerMain " && shift ;;
95
95
-decompile) PROG_NAME=" $DecompilerMain " && shift ;;
96
96
-print-tasty) PROG_NAME=" $DecompilerMain " && addScala " -print-tasty" && shift ;;
@@ -104,13 +104,7 @@ case "$1" in
104
104
# will be available as system properties.
105
105
-D* ) addJava " $1 " && shift ;;
106
106
-J* ) addJava " ${1: 2} " && shift ;;
107
- * ) if [ $in_scripting_args == false ]; then
108
- addResidual " $1 "
109
- else
110
- addScripting " $1 "
111
- fi
112
- shift
113
- ;;
107
+ * ) addResidual " $1 " && shift ;;
114
108
esac
115
109
done
116
110
You can’t perform that action at this time.
0 commit comments