hyper-literate/collects/help/help.ss
Matthew Flatt f1072f827d new scheme/cmdline, refine -r/-u to imply -N
svn: r7989

original commit: 138a38ea04bce3f7f3294887eaae6e980e91b3e5
2007-12-13 15:04:20 +00:00

16 lines
358 B
Scheme

#lang scheme/base
(require "search.ss"
net/sendurl
setup/dirs
scheme/cmdline)
(command-line
#:args search-term
(cond
[(null? search-term)
(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-term)]))