#NEWLINE# def do_run( self , input_ , output_ ) : #NEWLINE# #INDENT# '\n        Runs the current application\n\n        :param input_: An Input Instance\n        :type input_: cleo.inputs.Input\n        :param output_: An Output instance\n        :type output_: Output\n\n        :return: 0 if everything went fine, or an error code\n        :rtype: int\n        ' #NEWLINE# if input_ . has_parameter_option ( [ '--version' , '-V' ] ) : #NEWLINE# #INDENT# output_ . writeln ( self . get_long_version ( ) ) #NEWLINE# return 0 #NEWLINE# #UNINDENT# name = self . get_command_name ( input_ ) #NEWLINE# if input_ . has_parameter_option ( [ '--help' , '-h' ] ) : #NEWLINE# #INDENT# if ( not name ) : #NEWLINE# #INDENT# name = 'help' #NEWLINE# input_ = ListInput ( [ ( 'command' , 'help' ) ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _want_helps = True #NEWLINE# #UNINDENT# #UNINDENT# if ( not name ) : #NEWLINE# #INDENT# name = self . _default_command #NEWLINE# input_ = ListInput ( [ ( 'command' , name ) ] ) #NEWLINE# #UNINDENT# command = self . find ( name ) #NEWLINE# self . _running_command = command #NEWLINE# status_code = command . run ( input_ , output_ ) #NEWLINE# self . _running_command = None #NEWLINE# return status_code