cs: unbreak racket with no command-line arguments

This commit is contained in:
Matthew Flatt 2019-12-26 07:04:35 -06:00
parent e6e28fa8b7
commit c6e9d6cfd4

View File

@ -322,11 +322,13 @@
[else
(set! remaining-command-line-arguments (vector->immutable-vector
(list->vector args)))
(no-init! saw)
(when (and (null? args) (not (saw? saw 'non-config)))
(cond
[(and (null? args) (not (saw? saw 'non-config)))
(set! repl? #t)
(when text-repl?
(set! version? #t)))]))
(set! version? #t))]
[else
(no-init! saw)])]))
;; Dispatch on first argument:
(if (null? args)
(finish args saw)