3 top
="$(dirname $0)/../scheme"
4 exec racket
-i -S "$top/racket" -l errortrace
-cu "$0" ${1+"$@"}
9 (require
(lib
"cmdline.rkt"))
10 (require geiser
/server
)
12 (define port
(make-parameter
0))
13 (define
host (make-parameter
#f (lambda (h) (and (string? h) h))))
16 "run-racket.sh" (current-command-line-arguments
)
18 (("-n" "--hostname") n
"Network hostname, or #f for all interfaces" (host n
))
19 (("-p" "--port") p
"Geiser server port" (port
(string-
>number p
)))))
21 (printf "Geiser server running at port ~a~%" (start-geiser
(port
) (host)))