Fixed bug when handling optional arguments.
Added 'list [-v] params [REGEX]' command.

List defined parameter sets and the sketches for which they are defined.
With -v, print the full values defined in each set. If a regex is given,
only parameters whose name or sketches match the regex are printed.
Improve api_definitions

Added an example of a definition with more than one sketch.