from typing import Optional
from typing import List


def _get_password_option_args(password: Optional[str]) -> List[str]:
    """
    Get password option arguments.

    :param password: the password (optional).
    :return: empty list if password is None, else ['--password', password].
    """
    return [] if password is None else ["--password", password]