On Nov 4, 12:43 am, "Diez B. Roggisch" <de... at nospam.web.de> wrote: > def main(argv=None): > if argv is None: argv = sys.argv[1:] > ... Wouldn't that make optparse miss the first parameter sys.argv[1] mistaking it to be the name of the current program? - Sandip