Guile: Fix subr argument name retrieval for Guile >= 2.0.9.
[geiser.git] / bin / geiser-racket.sh
blob09a92a825ada8e83fc1561f55616bd29124c71cd
1 #!/bin/bash
2 #|
3 top="$(dirname $0)/../scheme"
4 exec racket -i -S "$top/racket" -l errortrace -cu "$0" ${1+"$@"}
5 |#
7 #lang racket/base
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))))
15 (command-line
16 "run-racket.sh" (current-command-line-arguments)
17 (once-each
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)))