<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def upgrade_cmd(argv=sys.argv[1:]):
 # pragma: no cover """\ Upgrade the database to the latest version. Usage: pld-ugprade [options] Options: --from=<v> Upgrade from a specific version, overriding the version stored in the database. --to=<v> Upgrade to a specific version instead of the latest version. -h --help Show this screen. """

    arguments = docopt(upgrade_cmd.__doc__, argv=argv)
    initialize_config(__mode__='fit')
    upgrade(from_version=arguments['--from'], to_version=arguments['--to'])