base, optparse: Various option-parsing enhancements.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 24 Apr 2006 14:30:23 +0000 (15:30 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 24 Apr 2006 14:46:23 +0000 (15:46 +0100)
commitb3bc37457df55c92cabc8aeeb42bc67d3fb8af12
treeacb3dc4167da01fcbef225ea29e38b78934c8a7e
parent0ff9df03bb54ba792cefa551face51748ae34259
base, optparse: Various option-parsing enhancements.

  * `case2' clauses can optionally bind a variable to its scrutinee.

  * New function `option-parse-return' to return a value from
    `option-parse-next'.

  * Enhance `options' parse-option-form' to understand disambiguating
    keywords arguments for all option slots.  This also means that these
    things can be set from expressions rather than constants.

  * Default the `define-program' variables sensibly.

  * Make `do-options' use `let*/gensyms'.

  * Make the optparse test use the convenience macros.

  * Rename `help-opts' to `help-options'.  Just because.  And tidy up
    the code a bunch.
mdw-base.lisp
optparse-test
optparse.lisp