- parse-app prefix spec opt-spec args config init end types #!rest oprocedure
Parses a list of command-line arguments ar{args} according to the application spec ar{opt-spec}. Returns a vector of five elements:
- proc
- procedure to run the application
- config
- a config object containing all parsed options
- args
- a list of remaining unparsed command-line arguments
- init
- an optional procedure to call before proc
- end
- an optional procedure to call after proc
The config object is prepended to config, with option names all prefixed by prefix. The original spec is used for app-help.