Skip to content

Commit f5fd931

Browse files
committed
Sorted arguments in account commands
1 parent 8018f3d commit f5fd931

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

SoftLayer/CLI/account/events.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010

1111

1212
@click.command(cls=SLCommand)
13+
@click.option('--announcement', is_flag=True, default=False,
14+
help="Show only announcement events.")
1315
@click.option('--ack-all', is_flag=True, default=False,
1416
help="Acknowledge every upcoming event. Doing so will turn off the popup in the control portal.")
17+
@click.option('--date-min', help="Earliest date to retrieve events for [MM/DD/YYYY]. Default: 2 days ago.")
1518
@click.option('--planned', is_flag=True, default=False,
1619
help="Show only planned events.")
1720
@click.option('--unplanned', is_flag=True, default=False,
1821
help="Show only unplanned events.")
19-
@click.option('--announcement', is_flag=True, default=False,
20-
help="Show only announcement events.")
21-
@click.option('--date-min', help="Earliest date to retrieve events for [MM/DD/YYYY]. Default: 2 days ago.")
2222
@environment.pass_env
2323
def cli(env, ack_all, planned, unplanned, announcement, date_min):
2424
"""Summary and acknowledgement of upcoming and ongoing maintenance events"""

SoftLayer/CLI/account/invoices.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212

1313
@click.command(cls=SLCommand)
14-
@click.option('--limit', default=50, show_default=True,
15-
help="How many invoices to get back.")
16-
@click.option('--closed', is_flag=True, default=False, show_default=True,
17-
help="Include invoices with a CLOSED status.")
1814
@click.option('--all', 'get_all', is_flag=True, default=False, show_default=True,
1915
help="Return ALL invoices. There may be a lot of these.")
16+
@click.option('--closed', is_flag=True, default=False, show_default=True,
17+
help="Include invoices with a CLOSED status.")
18+
@click.option('--limit', default=50, show_default=True,
19+
help="How many invoices to get back.")
2020
@environment.pass_env
2121
def cli(env, limit, closed=False, get_all=False):
2222
"""List invoices"""

SoftLayer/CLI/account/orders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
@click.command(cls=SLCommand)
1414
@click.option('--limit', '-l',
1515
help='How many results to get in one api call',
16-
default=100,
16+
default=50,
1717
show_default=True)
1818
@environment.pass_env
1919
def cli(env, limit):

0 commit comments

Comments
 (0)