Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

power command should use ONOFF_BOOL param type #43

Open
jwiese opened this issue Feb 17, 2019 · 0 comments
Open

power command should use ONOFF_BOOL param type #43

jwiese opened this issue Feb 17, 2019 · 0 comments

Comments

@jwiese
Copy link
Contributor

jwiese commented Feb 17, 2019

Ah, it indeed does not accept on or off. The proper fix would be to introduce a new type by extending the https://github.com/pallets/click/blob/master/click/types.py#L344 to check first if on or off is handled. This type should also be used directly in power command, but that can be left for another PR :-)

Originally posted by @rytilahti in #42

ONOFF_BOOL is now in main.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant