hyper-literate/collects/help/help.ss
Matthew Flatt dcc9ec44f5 add 'compose' to scheme/base; switch Help Desk to a mzscheme app
svn: r7979

original commit: bd7ced966ed54fedd5608a68ef8ec212a913e30d
2007-12-12 22:17:09 +00:00

19 lines
522 B
Scheme

#lang scheme/base
(require "search.ss"
net/sendurl ; browser/external
setup/dirs
mzlib/cmdline)
(define search-terms '())
(command-line "Help Desk"
(current-command-line-arguments)
(args search-term (set! search-terms search-term)))
(cond
[(null? search-terms)
(let ([dest-path (build-path (find-doc-dir) "start" "index.html")])
(send-url (format "file://~a" (path->string dest-path))))]
[else
(generate-search-results search-terms)])