

def upgrade_cmd(argv=sys.argv[1:]):
    'Upgrade the database to the latest version.\n\nUsage:\n  pld-ugprade [options]\n\nOptions:\n  --from=<v>               Upgrade from a specific version, overriding\n                           the version stored in the database.\n\n  --to=<v>                 Upgrade to a specific version instead of the\n                           latest version.\n\n  -h --help                Show this screen.\n'
    arguments = docopt(upgrade_cmd.__doc__, argv=argv)
    initialize_config(__mode__='fit')
    upgrade(from_version=arguments['--from'], to_version=arguments['--to'])

dataset/ETHPy150Open ottogroup/palladium/palladium/util.py upgrade_cmd/original