

def main(sysargs=None):
    from bloom.config import upconvert_bloom_to_config_branch
    upconvert_bloom_to_config_branch()
    parser = get_parser()
    parser = add_global_arguments(parser)
    generator_names = list_generators()
    generators = create_generators(generator_names)
    create_subparsers(parser, generators.values())
    args = parser.parse_args(sysargs)
    handle_global_arguments(args)
    generator = generators[args.generator]
    try:
        ensure_clean_working_env()
        ensure_git_root()
    except SystemExit:
        parser.print_usage()
        raise
    with log_prefix('[git-bloom-generate {0}]: '.format(generator.title)):
        git_clone = GitClone()
        with git_clone:
            run_generator(generator, generator)
        git_clone.commit()

dataset/ETHPy150Open ros-infrastructure/bloom/bloom/commands/git/generate.py main/VarMisuse@140/205 `args`->`generator`