def getBackupsForArgs(wordArgs, backups):
    """
    Returns the backups that are being requested from the args.
    """
    if wordArgs['id'] and wordArgs['id'] != 'all':
        id_ = int(wordArgs['id'])
        if id_ not in backups:
            raise KeyError('Backup id of {0} not found.'.format(id_))
        return {id_: backups[id_]}
    else:
        return backups
