Skip to content

Commit 58a1f7b

Browse files
committed
bin/dotc: fix "-d" argument
It's already used to specify an output folder, don't try to interpret it as a shortcut for -debug
1 parent 66e02a5 commit 58a1f7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/dotc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ onExit () {
151151

152152
# Get debug set early
153153
for arg in "$@"; do
154-
[[ $arg == "-d" ]] && debug=true
154+
[[ $arg == "-debug" ]] && debug=true
155155
done
156156

157157
# to reenable echo if we are interrupted before completing.
@@ -244,7 +244,7 @@ case "$1" in
244244
-h|-help) usage; exit 1 ;;
245245
-bootstrapped) bootstrapped=true && shift ;;
246246
-v|-verbose) verbose=true && shift ;;
247-
-d|-debug) debug=true && shift ;;
247+
-debug) debug=true && shift ;;
248248
-q|-quiet) quiet=true && shift ;;
249249

250250
# Optimize for short-running applications, see https://github.com/lampepfl/dotty/issues/222

0 commit comments

Comments
 (0)