parameters: (parser, args)
return_statement: return 0
docstring: update a bundle in the SDK to the latest version
docstring_summary: update a bundle in the SDK to the latest version
docstring_tokens: update a bundle in the SDK to the latest version
function: def CMDupdate(parser, args):
    """update a bundle in the SDK to the latest version"""
    parser.add_option('-F', '--force', action='store_true',
        help='Force updating bundles that already exist. The bundle will not be '
            'updated if the local revision matches the remote revision.')
    options, args = parser.parse_args(args)
    local_manifest = LoadLocalManifest()
    cfg = LoadConfig()
    remote_manifest = LoadCombinedRemoteManifest(options.manifest_url, cfg)
  
    if not args:
      args = [command.update.RECOMMENDED]
  
    try:
      delegate = command.update.RealUpdateDelegate(USER_DATA_DIR,
                                                   DEFAULT_SDK_ROOT, cfg)
      command.update.Update(delegate, remote_manifest, local_manifest, args,
                            options.force)
    finally:
      # Always write out the local manifest, we may have successfully updated one
      # or more bundles before failing.
      try:
        WriteLocalManifest(local_manifest)
      except Error as e:
        # Log the error writing to the manifest, but propagate the original
        # exception.
        logging.error(str(e))
  
    return 0
function_tokens: def CMDupdate ( parser , args ) : parser . add_option ( '-F' , '--force' , action = 'store_true' , help = 'Force updating bundles that already exist. The bundle will not be ' 'updated if the local revision matches the remote revision.' ) options , args = parser . parse_args ( args ) local_manifest = LoadLocalManifest ( ) cfg = LoadConfig ( ) remote_manifest = LoadCombinedRemoteManifest ( options . manifest_url , cfg ) if not args : args = [ command . update . RECOMMENDED ] try : delegate = command . update . RealUpdateDelegate ( USER_DATA_DIR , DEFAULT_SDK_ROOT , cfg ) command . update . Update ( delegate , remote_manifest , local_manifest , args , options . force ) finally : # Always write out the local manifest, we may have successfully updated one # or more bundles before failing. try : WriteLocalManifest ( local_manifest ) except Error as e : # Log the error writing to the manifest, but propagate the original # exception. logging . error ( str ( e ) ) return 0