Improve CLI option and args parsing.

Allow for --version and other options to be given anywhere in the
command line, and add full ordinary lambda list support to command
definitions thanks to using destructuring-bind.