

def get_argument_parser():
    parser = argparse.ArgumentParser(description='Configures the bloom repository with information in groups called tracks.\n')
    metavar = '[new|show|edit|delete|copy|rename]'
    subparsers = parser.add_subparsers(title='Commands', metavar=metavar, description='Call `git-bloom-config {0} -h` for additional help information on each command.\n'.format(metavar))
    new_parser = subparsers.add_parser('new')
    add = new_parser.add_argument
    add('track', help='name of track to create')
    add('--template', '-t', help='tempate to base new track on', choices=[x for x in config_template.keys() if (x is not None)], default=None)
    new_parser.set_defaults(func=new_cmd)
    new_parser = subparsers.add_parser('show')
    add = new_parser.add_argument
    add('track', help='name of track to show')
    new_parser.set_defaults(func=show)
    new_parser = subparsers.add_parser('edit')
    add = new_parser.add_argument
    add('track', help='name of track to edit')
    new_parser.set_defaults(func=edit_cmd)
    new_parser = subparsers.add_parser('delete')
    add = new_parser.add_argument
    add('track', help='name of track to delete')
    new_parser.set_defaults(func=delete)
    new_parser = subparsers.add_parser('copy')
    add = metavar.add_argument
    add('src', help='name of track to copy from')
    add('dst', help='name of track to copy to')
    new_parser.set_defaults(func=copy_cmd)
    new_parser = subparsers.add_parser('rename')
    add = new_parser.add_argument
    add('src', help='name of track to rename')
    add('dst', help='new name of track')
    new_parser.set_defaults(func=rename_cmd)
    return parser

dataset/ETHPy150Open ros-infrastructure/bloom/bloom/commands/git/config.py get_argument_parser/VarMisuse@227/421 `new_parser`->`metavar`