

def download_all(recommended=False, restart=True):
    "\n    Download all available updates so that they can be installed later with the\n    ``update`` or ``update_all`` functions. It returns a list of updates that\n    are now downloaded.\n\n    :param bool recommended: If set to True, only install the recommended\n    updates. If set to False (default) all updates are installed.\n\n    :param bool restart: Set this to False if you do not want to install updates\n    that require a restart. Default is True\n\n    :return: A list containing all downloaded updates on the system.\n    :rtype: list\n\n    CLI Example:\n\n    .. code-block:: bash\n\n       salt '*' softwareupdate.download_all\n    "
    to_download = _get_available(recommended, to_download)
    for name in to_download:
        download(name)
    return list_downloads()

dataset/ETHPy150Open saltstack/salt/salt/modules/mac_softwareupdate.py download_all/VarMisuse@24/281 `restart`->`to_download`