Skip to content

Click-repl tab completion does not work with help in options #56

@knguyen142

Description

@knguyen142

It seems like tab completion does not work when one of the options has a help field?

import click
from click_repl import register_repl

@click.group()
def cli():
    pass

@cli.command()
@click.option('--test', default=1, show_default=True, help='Test help')
def hello(test):
    click.echo("Hello world!")

register_repl(cli)
cli()

Option test does not show up in tab completion, but when the help='Test help' is removed it will show up. Is this a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions