-
Notifications
You must be signed in to change notification settings - Fork 194
Fix issue 1059 #1080
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
Fix issue 1059 #1080
Conversation
update from original repo
update from original repo
update from origin repo
|
||
@click.command() | ||
@click.argument('identifier') | ||
@click.option('--enabled', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use a Boolean Flag here, so the user doesn't have to actually type in enabled=True
.
See https://github.com/softlayer/softlayer-python/blob/master/SoftLayer/CLI/user/edit_permissions.py#L13 for an example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed it as following :
@click.option('--enable/--disable', default=True,
help="Whether enable (DEFAULT) or disable the interface.")
Resolves #1059 |
No description provided.