Skip to content

Do not show hidden options #29

@derlin

Description

@derlin

An option that is configured with hidden=True should not appear in the TUI.

Minimal example:

@tui()
@click.command()
@click.option("-f", "--foo", default=False, is_flag=True, hidden=False)
@click.option("-b", "--bar", default=False, is_flag=True, hidden=True)
def cli(foo, bar):
   pass

In the above, foo should appear, but bar shouldn't.

(By the way, keep up the good work, the fixes in 0.4.0 are awesome!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions