click-contrib / click-repl

Subcommand REPL for click apps
MIT License
215 stars 41 forks source link

click v7 breaks repl help #52

Closed TizianoPerrucci closed 1 year ago

TizianoPerrucci commented 5 years ago

When upgrading to click==7.0 commands help are not displayed anymore. Sample code:

from __future__ import print_function
import click
import click_repl

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

@cli.command()
def test1():
    """test 1 help"""
    print("in test 1")

@cli.command()
def test2():
    """test 2 help"""
    print("in test 2")

@cli.command()
def repl():
    click_repl.repl(click.get_current_context())

if __name__ == '__main__':
    cli()
theazureshadow commented 5 years ago

@TizianoPerrucci: Can you provide expected and actual output? I see this when I call --help on the example cli with click 7.0:

./tmp --help
Usage: tmp [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  repl
  test1  test 1 help
  test2  test 2 help
auvipy commented 2 years ago

what is the status of current release?

GhostOps77 commented 1 year ago

This issue is no more relevant at all, the help message gets printed in click v7 @auvipy , you can close this issue as well