def repo_main(args=None):
    parser = getRepoParser()
    parsedArgs = parser.parse_args(args)
    if "runner" not in parsedArgs:
        parser.print_help()
    else:
        runner = parsedArgs.runner(parsedArgs)
        try:
            runner.run()
        except exceptions.RepoManagerException as exception:
            print(exception.message)
            if parsedArgs.loud:
                raise
dataset/ETHPy150Open ga4gh/server/ga4gh/cli.py/repo_main/original