Relax asyncclick version requirement (#286)

* Add package_name to version_option(), breaks --version on click < 8
This commit is contained in:
Teemu R
2022-01-14 16:32:32 +01:00
committed by GitHub
parent 723fca9d08
commit 6ece506a3b
3 changed files with 64 additions and 86 deletions

View File

@@ -56,7 +56,7 @@ pass_dev = click.make_pass_decorator(SmartDevice)
@click.option(
"--type", default=None, type=click.Choice(TYPE_TO_CLASS, case_sensitive=False)
)
@click.version_option()
@click.version_option(package_name="python-kasa")
@click.pass_context
async def cli(ctx, host, alias, target, debug, bulb, plug, lightstrip, strip, type):
"""A tool for controlling TP-Link smart home devices.""" # noqa