def main():
    args = parser.parse_args()

    formatter = logging.Formatter("%(levelname)s: %(message)s")
    console = logging.StreamHandler(codecs.getwriter('utf8')(sys.stderr))
    console.setFormatter(formatter)
    logging.root.addHandler(console)

    if args.debug:
        logging.root.setLevel(logging.DEBUG)
    else:
        logging.root.setLevel(logging.INFO)

    if args.instatrace:
        instatrace.init_trace(args.instatrace)

    try:
        args.run(args)
    except __HOLE__:
        print
        sys.exit(1)
dataset/ETHPy150Open pteichman/cobe/cobe/control.py/main