def main(): """Manager entry point""" parser = OptionParser( usage="%prog [options] <commands> [commands options]", add_help_option=False) manager = Commandor(parser) manager.process()
def main(): parser = OptionParser( usage="%prog [options] <commands> [commands options]", add_help_option=False) commandor_options = [Option('-c', '--config', metavar="FILE", help='Configuration file')] manager = Commandor(parser, sys.argv[1:], commandor_options) manager.process()
def main(): parser = OptionParser( usage="%prog [options] <commands> [commands options]", add_help_option=False) commandor_options = [ Option('-c', '--config', metavar="FILE", help='Configuration file') ] manager = Commandor(parser, sys.argv[1:], commandor_options) manager.process()