summaryrefslogtreecommitdiffstats
path: root/txr-embedded-arg.txr
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-11-03 20:56:47 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-11-03 20:56:47 -0700
commit7ccd643ac222d3da563b386cef5caf7af1b79363 (patch)
treef370b15e162259da08afe318777f034ae5dff72e /txr-embedded-arg.txr
parent935f58e8941f03590bbd5c8482a31b50cf233802 (diff)
downloadtxr-7ccd643ac222d3da563b386cef5caf7af1b79363.tar.gz
txr-7ccd643ac222d3da563b386cef5caf7af1b79363.tar.bz2
txr-7ccd643ac222d3da563b386cef5caf7af1b79363.zip
Support simple list arguments in getopts.
* share/txr/stdlib/getopts.tl (defstruct sys:opt-parsed): New slot eff-type, appearing as an optional parameter in the boa constructor parameter list. (opt-desc check): Allow a type to be a cons with list in the car position. (sys:opt-parsed convert-type): Use the eff-type slot if it is set instead of the type from the descriptor. This lets us override the type for a slot, which is key to the recursive approach to how lists are handled in this same function. (opthelp): Show list type options in a visual way which suggests the use. No details are given. * txr.1: Documented list option type.
Diffstat (limited to 'txr-embedded-arg.txr')
0 files changed, 0 insertions, 0 deletions