docs: def as_command(self):
          """Creates the click command wrapping the function
          """
          try:
              params = self.unbound_func.__click_params__
              params.reverse()
              del self.unbound_func.__click_params__
          except AttributeError:
              params = []
          help = inspect.getdoc(self.real_func)
          if isinstance(help, bytes):
              help = help.decode('utf-8')
          self.options.setdefault('help', help)
          @pass_script_info_decorator
          def callback(info, *args, **kwargs):
              if self.with_reloader:
                  app = info.load_app()
                  if app.debug:
                      def inner():
                          return self.command_callback(info, *args, **kwargs)
                      run_with_reloader(inner, extra_files=get_reloader_extra_files())
                      return
              self.command_callback(info, *args, **kwargs)
          return self.cls(name=self.name, callback=callback, params=params, **self.options)