(self, name: str, command: str = None, python: 'function' = None, params: str ='', command_vars: list = None)
Do not specify both 'python' and 'command', either pass a python function or a command but not both.
Do not specify both 'python' and 'command', either pass a python function or a command but not both.
Do not specify both python and command either pass a python function or a command but not both .
def __init__(self, name: str, command: str = None, python: 'function' = None, params: str ='', command_vars: list = None):
        '''
        Do not specify both 'python' and 'command', either pass a python function or a command but not both.
        '''
        self.name = name
        self.command = command
        self.isMenu = False
        self.python = python
        self.params = params
        self.command_vars = command_vars

        if command != None and python != None:
            raise ValueError('both command and python cannot be defined')
def __init__ ( self , name : str , command : str = None , python : 'function' = None , params : str = '' , command_vars : list = None ) : self . name = name self . command = command self . isMenu = False self . python = python self . params = params self . command_vars = command_vars if command != None and python != None : raise ValueError ( 'both command and python cannot be defined' )