def add_parser(subparsers, parent_parser):
    CHECKOUT_HELP = 'Checkout data files from cache.'
    checkout_parser = subparsers.add_parser('checkout', parents=[parent_parser], description=CHECKOUT_HELP, help=CHECKOUT_HELP)
    checkout_parser.add_argument('-d', '--with-deps', action='store_true', default=False, help='Checkout all dependencies of the specified target.')
    checkout_parser.add_argument('-f', '--force', action='store_true', default=False, help='Do not prompt when removing working directory files.')
    checkout_parser.add_argument('targets', nargs='*', help='DVC files.')
    checkout_parser.set_defaults(func=CmdCheckout)
def add_parser(subparsers, parent_parser):
    CHECKOUT_HELP = 'Checkout data files from cache.'
    checkout_parser = subparsers.add_parser('checkout', parents=[parent_parser], description=CHECKOUT_HELP, help=CHECKOUT_HELP)
    checkout_parser.add_argument('-d', '--with-deps', action='store_true', default=False, help='Checkout all dependencies of the specified target.')
    checkout_parser.add_argument('-f', '--force', action='store_true', default=False, help='Do not prompt when removing working directory files.')
    checkout_parser.add_argument('targets', nargs='*', help='DVC files.')
    checkout_parser.set_defaults(func=CmdCheckout)