def main(args): options, args = parse_args() # rev_list = sys.stdin.readlines() if options.serve: serve(options) else: try: cli(options, args) except InvalidCommitish as e: abort(e.message())
def main(args): options, args = parse_args() # rev_list = sys.stdin.readlines() if options.serve: serve(options) else: sys.stdout = os.fdopen(sys.stdout.fileno(), 'w') try: cli(options, args) except InvalidCommitish as e: abort(e.message())