def dispatch(self, cargs):
        usage = "%s %s %s [options]" % (os.path.basename(cargs[0]),
                self.base.name(), self.name())
        parser = optparse.OptionParser(usage=usage)
        for option in self.options():
            (short, long, kw) = option
            parser.add_option(short, long, **kw)
        (options, args) = parser.parse_args(cargs)
        return self.run(options, args)
core function around kicking off the subcommand.
dataset/ETHPy150Open mpdehaan/interfacer/lib/interfacer/base_module.py/SubCommand.dispatch