racket/cmdline: fix table filtering when #:ps
is used
This commit is contained in:
parent
144486dcc0
commit
41e3deab97
|
@ -215,4 +215,12 @@
|
||||||
(test 'ok parse-command-line "test" #("x") null (case-lambda [(x) 'none] [(x . ys) 'ok]) '("arg"))
|
(test 'ok parse-command-line "test" #("x") null (case-lambda [(x) 'none] [(x . ys) 'ok]) '("arg"))
|
||||||
(test 'ok parse-command-line "test" #("x") null (case-lambda [(x) 'none] [(x y . z) 'ok]) '("arg"))
|
(test 'ok parse-command-line "test" #("x") null (case-lambda [(x) 'none] [(x y . z) 'ok]) '("arg"))
|
||||||
|
|
||||||
|
;; test that `#:ps` doesn't mess up error reporting
|
||||||
|
(err/rt-test (let ([args "args"])
|
||||||
|
(command-line
|
||||||
|
#:program "something"
|
||||||
|
#:argv #("-x")
|
||||||
|
#:ps "Stuff"))
|
||||||
|
(lambda (x) (regexp-match? #rx"unknown switch" (exn-message x))))
|
||||||
|
|
||||||
(report-errs)
|
(report-errs)
|
||||||
|
|
|
@ -414,6 +414,8 @@
|
||||||
null]
|
null]
|
||||||
[(eq? (car spec) 'help-labels)
|
[(eq? (car spec) 'help-labels)
|
||||||
null]
|
null]
|
||||||
|
[(eq? (car spec) 'ps)
|
||||||
|
null]
|
||||||
[(eq? (car spec) 'multi)
|
[(eq? (car spec) 'multi)
|
||||||
(map
|
(map
|
||||||
(lambda (line) (cons #f line))
|
(lambda (line) (cons #f line))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user