new scheme/cmdline, refine -r/-u to imply -N

svn: r7989

original commit: 138a38ea04bce3f7f3294887eaae6e980e91b3e5
This commit is contained in:
Matthew Flatt 2007-12-13 15:04:20 +00:00
parent dcc9ec44f5
commit f1072f827d
2 changed files with 8 additions and 11 deletions

View File

@ -1,18 +1,15 @@
#lang scheme/base
(require "search.ss"
net/sendurl ; browser/external
net/sendurl
setup/dirs
mzlib/cmdline)
scheme/cmdline)
(define search-terms '())
(command-line "Help Desk"
(current-command-line-arguments)
(args search-term (set! search-terms search-term)))
(cond
[(null? search-terms)
(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-terms)])
(generate-search-results search-term)]))

View File

@ -7,7 +7,7 @@
scribble/basic
scribble/manual
(prefix-in scheme: scribble/scheme)
net/sendurl ; browser/external
net/sendurl
mzlib/contract)
(provide/contract