def __init__(self, text, command, arguments=None, menu=None, should_exit=False):
        """
        :ivar str command: The console command to be executed
        :ivar list[str] arguments: An optional list of string arguments to be passed to the command
        :ivar int exit_status: the exit status of the command, None if it hasn't been run yet
        """
        super(CommandItem, self).__init__(text=text, menu=menu, should_exit=should_exit)
        self.command = command

        if arguments:
            self.arguments = arguments
        else:
            self.arguments = []

        self.exit_status = None
def __init__ ( self , text , command , arguments = None , menu = None , should_exit = False ) : super ( CommandItem , self ) . __init__ ( text = text , menu = menu , should_exit = should_exit ) self . command = command if arguments : self . arguments = arguments else : self . arguments = [ ] self . exit_status = None
:ivar str command: The console command to be executed
        :ivar list[str] arguments: An optional list of string arguments to be passed to the command
        :ivar int exit_status: the exit status of the command, None if it hasn't been run yet