def __printCommandSyntax(self, command):
        """ Command-completion helper method: print command syntax """
        commandHelp = self.completion[command]
        if commandHelp != None and len(commandHelp) > 2:
            commandValues = commandHelp[2]
            #commandDefault = commandHelp[3]
            displayHelp = [self._color(self.COLOR_WHITE, command)]
            if commandValues != None:
                valuesIsEnum = len(commandHelp) >= 6
                if '+' in command or command.upper() in ['ATS0']:
                    displayHelp.append(self._color(self.COLOR_WHITE, '='))
                displayHelp.append(('|' if valuesIsEnum else ',').join([value[0] for value in commandValues]))
            sys.stdout.write('\r Syntax: {0}\n'.format(self._color(self.COLOR_WHITE, ''.join(displayHelp))))
            sys.stdout.flush()
            self._refreshInputPrompt(len(self.inputBuffer))
def __printCommandSyntax ( self , command ) : commandHelp = self . completion [ command ] if commandHelp != None and len ( commandHelp ) > 2 : commandValues = commandHelp [ 2 ] displayHelp = [ self . _color ( self . COLOR_WHITE , command ) ] if commandValues != None : valuesIsEnum = len ( commandHelp ) >= 6 if '+' in command or command . upper ( ) in [ 'ATS0' ] : displayHelp . append ( self . _color ( self . COLOR_WHITE , '=' ) ) displayHelp . append ( ( '|' if valuesIsEnum else ',' ) . join ( [ value [ 0 ] for value in commandValues ] ) ) sys . stdout . write ( '\r Syntax: {0}\n' . format ( self . _color ( self . COLOR_WHITE , '' . join ( displayHelp ) ) ) ) sys . stdout . flush ( ) self . _refreshInputPrompt ( len ( self . inputBuffer ) )
Command-completion helper method: print command syntax