Skip to content

Commit 1a0a7a1

Browse files
committed
Skip lone dash in arguments
1 parent 3cbc091 commit 1a0a7a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,9 @@ protected List<String> preprocessArguments(List<String> givenArgs, Map<String, S
265265
unrecognized.add(arg);
266266
}
267267
break;
268+
case "-":
269+
programArgs.add(arg);
270+
break;
268271
default:
269272
if (!arg.startsWith("-")) {
270273
inputFile = arg;

0 commit comments

Comments
 (0)