from typing import Tuple
from typing import Optional


def is_executable_command(s: str, cmd: str) -> Tuple[bool, Optional[str]]:
    """determine executable command

    Args:
        s (str): str
        cmd (str): command

    Returns:
        Tuple[bool, Optional[str]]: judge, argument
    """
    length: int = len(cmd)
    is_executable: bool = s[:length] == cmd
    return (
        is_executable,
        s[length:] if is_executable and s[length:] != "" else None,
    )