I figured out the problem that I was having with getopt-long. You have to load getopt-long
using use
like so:
(use getopt-long)
(define grammar
`((help (required #f)
(value #f)
(single-char #\h))
(limit (required #f)
(value #f) ;; optional value
(single-char #\l)
(value (required INTEGER)
(predicate ,integer?)))))
(getopt-long (argv) grammar)