def METHOD_NAME(self, action):
    """Format the action invocation.
    :param action: The action to format
    :raises ValueError: If more than 2 options are given
    :returns: The formatted action invocation
    """
    if not action.option_strings:
        default = self._get_default_metavar_for_positional(action)
        (metavar,) = self._metavar_formatter(action, default)(1)
        return metavar
    if len(action.option_strings) == 1:
        return action.option_strings[0]
    if len(action.option_strings) == 2:
        # Account for a --1234 --long-option-name
        msg = f"{action.option_strings[0].ljust(6)} {action.option_strings[1]}"
        return msg
    msg = "Too many option strings"
    raise ValueError(msg)