def split_command_from_args(text: (str or None)) ->(str or None, str or None):
    """
    Splits the command (including any target) from its arguments
    :param text: the full message
    :return: (command, args)
    """
    if text is None or len(text) <= 0:
        return None, None
    if ' ' in text:
        return text.split(' ', 1)
    else:
        return text, None
