Skip to content

Commit 50fe507

Browse files
authored
Fix modes allowed in CLI (#764)
## Summary ## Checklist - [ ] Added Unit Tests - [ ] Covered by existing CI - [x] Integration tested - [ ] Documentation update <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Improved the handling of the `--mode` command-line option to ensure all available choices are displayed as strings. This enhances compatibility and usability when selecting modes. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent a436b60 commit 50fe507

File tree

1 file changed

+1
-1
lines changed
  • api/python/ai/chronon/repo

1 file changed

+1
-1
lines changed

api/python/ai/chronon/repo/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def set_defaults(ctx):
9898
default="dev",
9999
help="Running environment - default to be dev",
100100
)
101-
@click.option("--mode", type=click.Choice(MODE_ARGS.keys()), default=RunMode.BACKFILL)
101+
@click.option("--mode", type=click.Choice([str(k) for k in MODE_ARGS.keys()]), default=RunMode.BACKFILL)
102102
@click.option("--ds", help="the end partition to backfill the data")
103103
@click.option("--app-name", help="app name. Default to {}".format(APP_NAME_TEMPLATE))
104104
@click.option(

0 commit comments

Comments
 (0)