scribble-enhanced/collects/help/help.rkt
Matthew Flatt 7e5406e889 rename all files .ss -> .rkt
original commit: 28b404307793f041bb3363135a2968e283855318
2010-04-27 16:50:15 -06:00

20 lines
523 B
Racket

#lang scheme/base
(require "search.ss" scheme/cmdline scheme/list scheme/string
raco/command-name)
;; Minimal command-line arguments, the query string can contain all
;; kinds of magic.
(command-line
#:program (short-program+command-name)
#:handlers
(lambda (_ . ts)
(if (null? ts)
(send-main-page)
(perform-search (string-append* (add-between ts " ")))))
'("search-terms")
(lambda (help-str)
(display help-str)
(display " See the search page for the syntax of queries\n")
(exit 0)))