def get_worksheet_info_edit_command(raw_command_map):
    """
    Return a cli-command for editing worksheet-info. Return None if raw_command_map contents are invalid.
    Input:
        raw_command: a map containing the info to edit, new_value and the action to perform
    """
    key = raw_command_map.get('k')
    value = raw_command_map.get('v')
    action = raw_command_map.get('action')
    if (key is None or not key or value is None or not action ==
        'worksheet-edit'):
        return None
    return 'wedit -{k[0]} "{v}"'.format(**raw_command_map)
