cs: fix handling of an empty command-line argument
This commit is contained in:
parent
1f92e98590
commit
c93693169a
|
@ -558,8 +558,8 @@
|
|||
(loop (cons (cadr args) (cons (car args) (cddr args))))])]
|
||||
[else
|
||||
(cond
|
||||
[(and (eqv? (string-ref arg 0) #\-)
|
||||
(> (string-length arg) 1))
|
||||
[(and (> (string-length arg) 1)
|
||||
(eqv? (string-ref arg 0) #\-))
|
||||
(cond
|
||||
[(and (> (string-length arg) 2)
|
||||
(not (eqv? (string-ref arg 1) #\-)))
|
||||
|
|
Loading…
Reference in New Issue
Block a user