chiark / gitweb /
optparse: Make enum opthandler take an evaluated list.
[lisp] / optparse-test
index 0fe74b94dc39ec5426c6a1c6fb01a0db3ab40202..b5fe41f47be56e617c97888d984e26bfbe487f41 100755 (executable)
@@ -53,7 +53,7 @@
            (#\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.")