code: def generate_help_text(self):
          
          param_descrip = example = ""
          self.description_docs = u''
  
          rows, _ = get_window_dim()
          rows = int(rows)
  
          param_args = self.completer.leftover_args
          last_word = self.completer.unfinished_word
          command = self.completer.current_command
          new_command = ' '.join([command, last_word]).strip()
  
          if not self.completer.complete_command and new_command in self.completer.command_description:
              command = new_command
  
          # get command/group help
          if self.completer and command in self.completer.command_description:
              self.description_docs = u'{}'.format(self.completer.command_description[command])
  
          # get parameter help if full command
          if self.completer and command in self.completer.command_param_info:
              param = param_args[-1] if param_args else ''
              param = last_word if last_word.startswith('-') else param
  
              if param in self.completer.command_param_info[command] and self.completer.has_description(
                      command + " " + param):
                  param_descrip = ''.join([
                      param, ":", '\n', self.completer.param_description.get(command + " " + param, '')])
  
              if command in self.completer.command_examples:
                  string_example = []
                  for example in self.completer.command_examples[command]:
                      for part in example:
                          string_example.append(part)
                  ''.join(string_example)
                  example = self._space_examples(
                      self.completer.command_examples[command], rows, self.example_page)
  
          return param_descrip, example
docs: generates the help text based on commands typed