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

click v7 breaks repl help

Open TizianoPerrucci opened this issue 5 years ago • 2 comments

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()

TizianoPerrucci avatar Oct 27 '18 09:10 TizianoPerrucci

@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

theazureshadow avatar Nov 14 '18 01:11 theazureshadow

what is the status of current release?

auvipy avatar Jul 07 '22 03:07 auvipy

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

GhostOps77 avatar Mar 24 '23 12:03 GhostOps77