def METHOD_NAME(self, action, parent):
    # Add leaf node with attributes
    for opt in action.option_strings:
        if '--' in opt:
            Node(name=opt, arg_type=self._set_arg_type(action), parent=parent)