new scheme/cmdline, refine -r/-u to imply -N
svn: r7989 original commit: 138a38ea04bce3f7f3294887eaae6e980e91b3e5
This commit is contained in:
parent
dcc9ec44f5
commit
f1072f827d
|
@ -1,18 +1,15 @@
|
||||||
#lang scheme/base
|
#lang scheme/base
|
||||||
|
|
||||||
(require "search.ss"
|
(require "search.ss"
|
||||||
net/sendurl ; browser/external
|
net/sendurl
|
||||||
setup/dirs
|
setup/dirs
|
||||||
mzlib/cmdline)
|
scheme/cmdline)
|
||||||
|
|
||||||
(define search-terms '())
|
(command-line
|
||||||
(command-line "Help Desk"
|
#:args search-term
|
||||||
(current-command-line-arguments)
|
(cond
|
||||||
(args search-term (set! search-terms search-term)))
|
[(null? search-term)
|
||||||
|
|
||||||
(cond
|
|
||||||
[(null? search-terms)
|
|
||||||
(let ([dest-path (build-path (find-doc-dir) "start" "index.html")])
|
(let ([dest-path (build-path (find-doc-dir) "start" "index.html")])
|
||||||
(send-url (format "file://~a" (path->string dest-path))))]
|
(send-url (format "file://~a" (path->string dest-path))))]
|
||||||
[else
|
[else
|
||||||
(generate-search-results search-terms)])
|
(generate-search-results search-term)]))
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
scribble/basic
|
scribble/basic
|
||||||
scribble/manual
|
scribble/manual
|
||||||
(prefix-in scheme: scribble/scheme)
|
(prefix-in scheme: scribble/scheme)
|
||||||
net/sendurl ; browser/external
|
net/sendurl
|
||||||
mzlib/contract)
|
mzlib/contract)
|
||||||
|
|
||||||
(provide/contract
|
(provide/contract
|
||||||
|
|
Loading…
Reference in New Issue
Block a user