Skip to content

Commit 2c86f68

Browse files
Merge pull request #1748 from caberos/issue1747
Update Help message for commands that take in multiple arguments
2 parents 735112e + b356690 commit 2c86f68

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

SoftLayer/CLI/block/access/authorize.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,19 @@
66
from SoftLayer.CLI import environment
77
from SoftLayer.CLI import exceptions
88

9+
MULTIPLE = '(Multiple allowed)'
10+
911

1012
@click.command(cls=SoftLayer.CLI.command.SLCommand, )
1113
@click.argument('volume_id')
1214
@click.option('--hardware-id', '-h', multiple=True,
13-
help='The id of one SoftLayer_Hardware to authorize')
15+
help='The id of one SoftLayer_Hardware to authorize ' + MULTIPLE)
1416
@click.option('--virtual-id', '-v', multiple=True,
15-
help='The id of one SoftLayer_Virtual_Guest to authorize')
17+
help='The id of one SoftLayer_Virtual_Guest to authorize ' + MULTIPLE)
1618
@click.option('--ip-address-id', '-i', multiple=True,
17-
help='The id of one SoftLayer_Network_Subnet_IpAddress to authorize')
19+
help='The id of one SoftLayer_Network_Subnet_IpAddress to authorize ' + MULTIPLE)
1820
@click.option('--ip-address', multiple=True,
19-
help='An IP address to authorize')
21+
help='An IP address to authorize ' + MULTIPLE)
2022
@environment.pass_env
2123
def cli(env, volume_id, hardware_id, virtual_id, ip_address_id, ip_address):
2224
"""Authorizes hosts to access a given volume"""

SoftLayer/CLI/file/access/authorize.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,22 @@
66
from SoftLayer.CLI import environment
77
from SoftLayer.CLI import exceptions
88

9+
MULTIPLE = '(Multiple allowed)'
10+
911

1012
@click.command(cls=SoftLayer.CLI.command.SLCommand, )
1113
@click.argument('volume_id')
1214
@click.option('--hardware-id', '-h', multiple=True,
13-
help='The id of one SoftLayer_Hardware to authorize')
15+
help='The id of one SoftLayer_Hardware to authorize ' + MULTIPLE)
1416
@click.option('--virtual-id', '-v', multiple=True,
15-
help='The id of one SoftLayer_Virtual_Guest to authorize')
17+
help='The id of one SoftLayer_Virtual_Guest to authorize ' + MULTIPLE)
1618
@click.option('--ip-address-id', '-i', multiple=True,
1719
help='The id of one SoftLayer_Network_Subnet_IpAddress'
18-
' to authorize')
20+
' to authorize ' + MULTIPLE)
1921
@click.option('--ip-address', multiple=True,
20-
help='An IP address to authorize')
22+
help='An IP address to authorize ' + MULTIPLE)
2123
@click.option('--subnet-id', '-s', multiple=True,
22-
help='The id of one SoftLayer_Network_Subnet to authorize')
24+
help='The id of one SoftLayer_Network_Subnet to authorize ' + MULTIPLE)
2325
@environment.pass_env
2426
def cli(env, volume_id, hardware_id, virtual_id, ip_address_id,
2527
ip_address, subnet_id):

0 commit comments

Comments
 (0)