module+ main in reload.rkt
This commit is contained in:
parent
856cad237f
commit
f0db94c102
|
@ -110,3 +110,9 @@
|
|||
(reload!)
|
||||
(log-syndicate/reload-warning "Module ~v does not exist" pathstr))
|
||||
(previous-version (latest-version)))))
|
||||
|
||||
(module+ main
|
||||
(require racket/cmdline)
|
||||
(extend-ground-boot! (lambda ()
|
||||
(define module-path (command-line #:args (module-path) module-path))
|
||||
(spawn-reloader* module-path "<main>"))))
|
||||
|
|
Loading…
Reference in New Issue