|
13 | 13 |
|
14 | 14 |
|
15 | 15 | @click.command() |
16 | | -@click.option('--name', help="Scale group's name.") |
17 | | -@click.option('--cooldown', type=click.INT, |
| 16 | +@click.option('--name', required=True, prompt=True, help="Scale group's name.") |
| 17 | +@click.option('--cooldown', required=True, prompt=True, type=click.INT, |
18 | 18 | help="The number of seconds this group will wait after lastActionDate before performing another action.") |
19 | | -@click.option('--min', 'minimum', type=click.INT, help="Set the minimum number of guests") |
20 | | -@click.option('--max', 'maximum', type=click.INT, help="Set the maximum number of guests") |
21 | | -@click.option('--regional', type=click.INT, |
| 19 | +@click.option('--min', 'minimum', required=True, prompt=True, type=click.INT, help="Set the minimum number of guests") |
| 20 | +@click.option('--max', 'maximum', required=True, prompt=True, type=click.INT, help="Set the maximum number of guests") |
| 21 | +@click.option('--regional', required=True, prompt=True, type=click.INT, |
22 | 22 | help="The identifier of the regional group this scaling group is assigned to.") |
23 | 23 | @click.option('--postinstall', '-i', help="Post-install script to download") |
24 | | -@click.option('--os', '-o', help="OS install code. Tip: you can specify <OS>_LATEST") |
| 24 | +@click.option('--os', '-o', required=True, prompt=True, help="OS install code. Tip: you can specify <OS>_LATEST") |
25 | 25 | @click.option('--datacenter', '-d', required=True, prompt=True, help="Datacenter shortname") |
26 | 26 | @click.option('--hostname', '-H', required=True, prompt=True, help="Host portion of the FQDN") |
27 | 27 | @click.option('--domain', '-D', required=True, prompt=True, help="Domain portion of the FQDN") |
28 | | -@click.option('--cpu', type=click.INT, help="Number of CPUs for new guests (existing not effected") |
29 | | -@click.option('--memory', type=click.INT, help="RAM in MB or GB for new guests (existing not effected") |
30 | | -@click.option('--policy-relative', help="The type of scale to perform(ABSOLUTE, PERCENT, RELATIVE).") |
| 28 | +@click.option('--cpu', required=True, prompt=True, type=click.INT, |
| 29 | + help="Number of CPUs for new guests (existing not effected") |
| 30 | +@click.option('--memory', required=True, prompt=True, type=click.INT, |
| 31 | + help="RAM in MB or GB for new guests (existing not effected") |
| 32 | +@click.option('--policy-relative', required=True, prompt=True, |
| 33 | + help="The type of scale to perform(ABSOLUTE, PERCENT, RELATIVE).") |
31 | 34 | @click.option('--termination-policy', |
32 | 35 | help="The termination policy for the group(CLOSEST_TO_NEXT_CHARGE=1, NEWEST=2, OLDEST=3).") |
33 | 36 | @click.option('--policy-name', help="Collection of policies for this group. This can be empty.") |
34 | 37 | @click.option('--policy-amount', help="The number to scale by. This number has different meanings based on type.") |
35 | 38 | @click.option('--userdata', help="User defined metadata string") |
36 | 39 | @helpers.multi_option('--key', '-k', help="SSH keys to add to the root user") |
37 | | -@helpers.multi_option('--disk', help="Disk sizes") |
| 40 | +@helpers.multi_option('--disk', required=True, prompt=True, help="Disk sizes") |
38 | 41 | @environment.pass_env |
39 | 42 | def cli(env, **args): |
40 | 43 | """Order/Create a scale group.""" |
|
0 commit comments