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