Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2024 12:13 AM
Typer can handle this syntax as well, I just tested it locally by passing the value for application-name in various formats:
Test 1
PS C:\my_repo> poetry run python -m typer .\entrypoint_typer.py run --application-name=182
2024-11-22 09:09:44,223 - root - INFO - application_name='182'Test 2
PS C:\my_repo> poetry run python -m typer .\entrypoint_typer.py run --application-name 182
2024-11-22 09:10:21,266 - root - INFO - application_name='182'Still unsure why it doesn't work as part of the asset bundle though. It's not a critical issue since we can use argparse instead, but we still would love to know why one works while the other doesn't. Maybe it does come down to the implementation of typer, some aspect might be different when running it in Databricks.