def format_options(self, ctx, formatter) -> None:
    'Writes all the options into the formatter if they exist.'
    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'):
            self.write_dl(formatter, opts)
Writes all the options into the formatter if they exist.
def format_options(self, ctx, formatter) -> None:
    
    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'):
            self.write_dl(formatter, opts)