def add_argument(self, action):
    if (action.help is not SUPPRESS):
        get_invocation = self._format_action_invocation
        invocations = [get_invocation(action)]
        for subaction in self._iter_indented_subactions(action):
            invocations.append(get_invocation(subaction))
        invocation_length = max([len(s) for s in invocations])
        action_length = ((invocation_length + self._current_indent) + 2)
        self._action_max_length = max(self._action_max_length, action_length)
        self._add_item(self._format_action, [action])
def add_argument(self, action):
    if (action.help is not SUPPRESS):
        get_invocation = self._format_action_invocation
        invocations = [get_invocation(action)]
        for subaction in self._iter_indented_subactions(action):
            invocations.append(get_invocation(subaction))
        invocation_length = max([len(s) for s in invocations])
        action_length = ((invocation_length + self._current_indent) + 2)
        self._action_max_length = max(self._action_max_length, action_length)
        self._add_item(self._format_action, [action])