code: def format_options(self, ctx, formatter):
          
          opts = []
          for param in self.get_params(ctx):
              rv = param.get_help_record(ctx)
              if rv is not None:
                  opts.append(rv)
  
          if opts:
              with formatter.section('Options'):
                  formatter.write_dl(opts)
docs: Writes all the options into the formatter if they exist.