Skip to content

Commit 06d4197

Browse files
committed
[GR-13918] option -c doesn't work as expected.
1 parent 9104425 commit 06d4197

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

graalpython/com.oracle.graal.python.shell/src/com/oracle/graal/python/shell/GraalPythonMain.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ protected List<String> preprocessArguments(List<String> givenArgs, Map<String, S
9393
break;
9494
case "-c":
9595
i += 1;
96+
programArgs.add(arg);
9697
if (i < arguments.size()) {
9798
commandString = arguments.get(i);
9899
} else {
@@ -182,6 +183,10 @@ protected List<String> preprocessArguments(List<String> givenArgs, Map<String, S
182183
subprocessArgs.add("Dgraal.TruffleCompilationExceptionsAreThrown=true");
183184
inputArgs.remove("-compile-truffle-immediately");
184185
break;
186+
case "-u":
187+
// TODO we currently don't support this option, but needs to be consumed
188+
// due pip/wheel installer.
189+
break;
185190
default:
186191
if (!arg.startsWith("-")) {
187192
inputFile = arg;

0 commit comments

Comments
 (0)