Leo Butler wrote:
>
> < And most of the newly expanded options aren't defined. I guess that
> < clause is meant to handle the case of -abc where -a, -b, and -c are
> < options. But this doesn't work well if the value of an option looks
> < like an option. Expand-args seems too greedy.
> <
> < Can we live without being able to recognize -abc as three separate
> < options all smashed into one?
> <
> < Or maybe we need a new command line parser? (I'd rather not write a
> < new one.)
>
> Getopt_long has been ported to cl by K Rosenberg.
>
>
Unfortunately, this doesn't understand "-abc":
CL-USER> (getopt:getopt '("-abc") '(("-a" :none) ("-b" :none) ("-c" :none)))
NIL
NIL
("-abc")
CL-USER> (getopt:getopt '("-a" "-b" "-c") '(("-a" :none) ("-b" :none)
("-c" :none)))
NIL
(("-a") ("-b") ("-c"))
NIL
Too bad.
Ray