Skip to content

Commit 7715b1a

Browse files
committed
avoid negation in CLI flag
--disable-cost-savings is less clear than --enable-performance
1 parent 12619ce commit 7715b1a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/lightning_app/cli/lightning_cli_create.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ def create():
3333
help="Instance types that you want to support, for computer jobs within the cluster.",
3434
)
3535
@click.option(
36-
"--disable-cost-savings",
37-
"disable_cost_savings",
36+
"--enable-performance",
37+
"enable_performance",
3838
type=bool,
3939
required=False,
4040
default=False,
@@ -65,7 +65,7 @@ def create_cluster(
6565
provider: str,
6666
instance_types: str,
6767
edit_before_creation: bool,
68-
disable_cost_savings: bool,
68+
enable_performance: bool,
6969
wait: bool,
7070
**kwargs,
7171
):
@@ -81,6 +81,6 @@ def create_cluster(
8181
external_id=external_id,
8282
instance_types=instance_types.split(",") if instance_types is not None else None,
8383
edit_before_creation=edit_before_creation,
84-
cost_savings=not disable_cost_savings,
84+
cost_savings=not enable_performance,
8585
wait=wait,
8686
)

tests/tests_app/cli/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def test_main_lightning_cli_help():
7676
(["--instance-types", "t3.xlarge"], ["t3.xlarge"], True),
7777
(["--instance-types", "t3.xlarge,t3.2xlarge"], ["t3.xlarge", "t3.2xlarge"], True),
7878
([], None, True),
79-
(["--disable-cost-savings"], None, False),
79+
(["--enable_performance"], None, False),
8080
],
8181
)
8282
def test_create_cluster(

0 commit comments

Comments
 (0)