Skip to content

Commit 6767e35

Browse files
authored
fix: set plan flag defaults to None in CLI (#4491)
1 parent 8bbcd85 commit 6767e35

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sqlmesh/cli/main.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,11 +346,13 @@ def diff(ctx: click.Context, environment: t.Optional[str] = None) -> None:
346346
"--skip-tests",
347347
is_flag=True,
348348
help="Skip tests prior to generating the plan if they are defined.",
349+
default=None,
349350
)
350351
@click.option(
351352
"--skip-linter",
352353
is_flag=True,
353354
help="Skip linting prior to generating the plan if the linter is enabled.",
355+
default=None,
354356
)
355357
@click.option(
356358
"--restate-model",
@@ -363,17 +365,20 @@ def diff(ctx: click.Context, environment: t.Optional[str] = None) -> None:
363365
"--no-gaps",
364366
is_flag=True,
365367
help="Ensure that new snapshots have no data gaps when comparing to existing snapshots for matching models in the target environment.",
368+
default=None,
366369
)
367370
@click.option(
368371
"--skip-backfill",
369372
"--dry-run",
370373
is_flag=True,
371374
help="Skip the backfill step and only create a virtual update for the plan.",
375+
default=None,
372376
)
373377
@click.option(
374378
"--empty-backfill",
375379
is_flag=True,
376380
help="Produce empty backfill. Like --skip-backfill no models will be backfilled, unlike --skip-backfill missing intervals will be recorded as if they were backfilled.",
381+
default=None,
377382
)
378383
@click.option(
379384
"--forward-only",
@@ -439,6 +444,7 @@ def diff(ctx: click.Context, environment: t.Optional[str] = None) -> None:
439444
"--run",
440445
is_flag=True,
441446
help="Run latest intervals as part of the plan application (prod environment only).",
447+
default=None,
442448
)
443449
@click.option(
444450
"--enable-preview",
@@ -450,6 +456,7 @@ def diff(ctx: click.Context, environment: t.Optional[str] = None) -> None:
450456
"--diff-rendered",
451457
is_flag=True,
452458
help="Output text differences for the rendered versions of the models and standalone audits",
459+
default=None,
453460
)
454461
@opt.verbose
455462
@click.pass_context

0 commit comments

Comments
 (0)