Skip to content

Commit eed27f4

Browse files
committed
Fix #1525: start repl if first arg to dotr starts with hyphen
1 parent 909d8f1 commit eed27f4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/dotr

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,13 @@ function runMain {
2929
fi
3030
}
3131

32+
first_arg=$1
33+
3234
if [ -z "$1" ]; then
3335
echo "Starting dotty REPL..."
3436
eval "$DOTTY_ROOT/bin/dotc -repl"
37+
elif [[ ${first_arg:0:1} == "-" ]]; then
38+
eval "$DOTTY_ROOT/bin/dotc -repl $@"
3539
else
3640
runMain "$@"
3741
fi

0 commit comments

Comments
 (0)