from typing import Tuple


def generate_command_parameters(command: str) -> Tuple[str, int]:
    """Helper function to generate parameters from commands passed as string.

    A command string is converted to a (action: str, step: int) tuple.
    Pattern is:
        command is an "action step" string than we can split and unpack
        if commmand is a one-word string, step is defaulted to 1
    """

    # try to split and unpack the command string
    try:
        action, step = command.split(" ")
    # NameError is raised if not enough values to unpack,
    # thus we know the command must be one-word and we default step to 1
    except ValueError:
        action = command
        step = "1"
    # return a tuple of (action: str, step: int)
    return (action, int(step))