-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Labels
bugSomething isn't workingSomething isn't workingincompatibilityIncompatibility with other functions and pluginsIncompatibility with other functions and plugins
Description
It looks like the new click adds the --help option everywhere, maybe it could be related to pallets/click#2563?
Anyway, error message is unsurprisingly:
[ 12s] ______________________ test_missing_group_decl_first_api _______________________
[ 12s]
[ 12s] runner = <click.testing.CliRunner object at 0x7fda48f661e0>
[ 12s]
[ 12s] def test_missing_group_decl_first_api(runner):
[ 12s] @click.command()
[ 12s] @click.option('--hello1')
[ 12s] @optgroup.option('--foo')
[ 12s] @optgroup.option('--bar')
[ 12s] @click.option('--hello2')
[ 12s] def cli(**params):
[ 12s] pass
[ 12s]
[ 12s] result = runner.invoke(cli, ['--help'])
[ 12s]
[ 12s] > assert result.exception
[ 12s] E assert None
[ 12s] E + where None = <Result okay>.exception
FliegendeWurst, l0b0 and espdev
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingincompatibilityIncompatibility with other functions and pluginsIncompatibility with other functions and plugins