code: def invoked_with(self):
          
          command_name = self._command_impl.name
          ctx = self.context
          if ctx is None or ctx.command is None or ctx.command.qualified_name != command_name:
              return command_name
          return ctx.invoked_with
docs: Similar to :attr:`Context.invoked_with` except properly handles
          the case where :meth:`Context.send_help` is used.
  
          If the help command was used regularly then this returns
          the :attr:`Context.invoked_with` attribute. Otherwise, if
          it the help command was called using :meth:`Context.send_help`
          then it returns the internal command name of the help command.
  
          Returns
          ---------
          :class:`str`
              The command name that triggered this invocation.