(ctx)
Format all `click.Option` for a `click.Command`.
Format all `click.Option` for a `click.Command`.
Format all click . Option for a click . Command .
def _format_options(ctx):
    """Format all `click.Option` for a `click.Command`."""
    # the hidden attribute is part of click 7.x only hence use of getattr
    params = [
        param
        for param in ctx.command.params
        if isinstance(param, click.Option) and not getattr(param, 'hidden', False)
    ]

    for param in params:
        for line in _format_option(param):
            yield line
        yield ''
def _format_options ( ctx ) : # the hidden attribute is part of click 7.x only hence use of getattr params = [ param for param in ctx . command . params if isinstance ( param , click . Option ) and not getattr ( param , 'hidden' , False ) ] for param in params : for line in _format_option ( param ) : yield line yield ''