File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,6 @@ classpathArgs () {
7979 jvm_cp_args=" -classpath \" $toolchain \" "
8080}
8181
82- in_scripting_args=false
8382while [[ $# -gt 0 ]]; do
8483case " $1 " in
8584 --) shift ; for arg; do addResidual " $arg " ; done ; set -- ;;
@@ -90,7 +89,8 @@ case "$1" in
9089 # Optimize for short-running applications, see https://github.com/lampepfl/dotty/issues/222
9190 -Oshort) addJava " -XX:+TieredCompilation -XX:TieredStopAtLevel=1" && shift ;;
9291 -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 ;;
9494 -compile) PROG_NAME=" $CompilerMain " && shift ;;
9595 -decompile) PROG_NAME=" $DecompilerMain " && shift ;;
9696 -print-tasty) PROG_NAME=" $DecompilerMain " && addScala " -print-tasty" && shift ;;
@@ -104,13 +104,7 @@ case "$1" in
104104 # will be available as system properties.
105105 -D* ) addJava " $1 " && shift ;;
106106 -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 ;;
114108 esac
115109done
116110
You can’t perform that action at this time.
0 commit comments