Skip to content

Conversation

ATGE
Copy link
Contributor

@ATGE ATGE commented Nov 19, 2018

No description provided.

@coveralls
Copy link

coveralls commented Nov 19, 2018

Coverage Status

Coverage increased (+0.01%) to 89.838% when pulling b2a09e6 on ATGE:fix_issue-1059 into dda8fad on softlayer:master.


@click.command()
@click.argument('identifier')
@click.option('--enabled',
Copy link
Member

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.

Copy link
Contributor Author

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.")

@allmightyspiff
Copy link
Member

Resolves #1059

@allmightyspiff allmightyspiff merged commit 3a1e016 into softlayer:master Nov 21, 2018
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

Successfully merging this pull request may close these issues.

3 participants