python optparse don't allow -XX options. to use this format, you need --XX (-- for long format) optparse.OptionError: invalid long option string '-la': must start with --, followed by non-dash -- Usability improvements for command-line options https://launchpad.net/bugs/81282