parameters: (self, text, *ignored)
return_statement: return cmd_names
docstring: Make tab completion of commands case agnostic
  
      Override the superclass's completenames() method to support tab completion for
      upper case and mixed case commands.
docstring_summary: Make tab completion of commands case agnostic
docstring_tokens: Make tab completion of commands case agnostic
function: def completenames(self, text, *ignored):
      """Make tab completion of commands case agnostic
  
      Override the superclass's completenames() method to support tab completion for
      upper case and mixed case commands.
      """
      cmd_names = [cmd for cmd in self.commands if cmd.startswith(text.lower())]
      # If the user input is upper case, return commands in upper case.
      if text.isupper(): return [cmd_names.upper() for cmd_names in cmd_names]
      # If the user input is lower case or mixed case, return lower case commands.
      return cmd_names
function_tokens: def completenames ( self , text , * ignored ) : cmd_names = [ cmd for cmd in self . commands if cmd . startswith ( text . lower ( ) ) ] # If the user input is upper case, return commands in upper case. if text . isupper ( ) : return [ cmd_names . upper ( ) for cmd_names in cmd_names ] # If the user input is lower case or mixed case, return lower case commands. return cmd_names