chiark
/
gitweb
/
~mdw
/
lisp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
optparse: Make enum opthandler take an evaluated list.
[lisp]
/
optparse-test
diff --git
a/optparse-test
b/optparse-test
index 0fe74b94dc39ec5426c6a1c6fb01a0db3ab40202..b5fe41f47be56e617c97888d984e26bfbe487f41 100755
(executable)
--- a/
optparse-test
+++ b/
optparse-test
@@
-53,7
+53,7
@@
(#\k "keywword" (:arg "KEYWORD") (keyword opt-keyword)
("Set an arbitrary keyword."))
(#\e "enumeration" (:arg "ENUM")
(#\k "keywword" (:arg "KEYWORD") (keyword opt-keyword)
("Set an arbitrary keyword."))
(#\e "enumeration" (:arg "ENUM")
- (keyword opt-enum
:apple :apple-pie :abacus :banana
)
+ (keyword opt-enum
(list :apple :apple-pie :abacus :banana)
)
("Set a keyword from a fixed set."))
(#\x "xray" (:arg "WAVELENGTH")
"Report an option immediately.")
("Set a keyword from a fixed set."))
(#\x "xray" (:arg "WAVELENGTH")
"Report an option immediately.")