click-repl icon indicating copy to clipboard operation
click-repl copied to clipboard

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

Open knguyen142 opened this issue 6 years ago • 0 comments

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?

knguyen142 avatar Jan 24 '19 15:01 knguyen142