You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
This works for --select and --exclude because the splitting happens during the selection spec comprehension (I think):
$ dbt -q ls --select "stg_orders stg_products"
But it does not work for --resource-type or --output-keys:
$ dbt -q ls --resource-type "model semantic_model"
Usage: dbt ls [OPTIONS]
Try 'dbt ls -h' for help.
Error: Invalid value for '--resource-types' / '--resource-type': 'model semantic_model' is not one of 'metric', 'semantic_model', 'source', 'analysis', 'model', 'test', 'exposure', 'snapshot', 'seed', 'default', 'all'.
While (1) is what we've historically documented/recommended, it is not POSIX standard. (2) and (3) are significantly more common, and easier to support in other CLIs. The quoted option (2) in particular is easier to read as the number of arguments increases.
Steps To Reproduce
Pass a quoted string with multiple arguments into dbt list --output-keys or dbt list --resource-types
github-actionsbot
changed the title
[Bug] MultiOption CLI option should accept quoted strings with multiple options
[CT-3095] [Bug] MultiOption CLI option should accept quoted strings with multiple options
Sep 8, 2023
Is this a new bug in dbt-core?
Current Behavior
This works for
--select
and--exclude
because the splitting happens during the selection spec comprehension (I think):But it does not work for
--resource-type
or--output-keys
:Expected Behavior
For maximum flexibility,
MultiOption
params should accept all of the following:While (1) is what we've historically documented/recommended, it is not POSIX standard. (2) and (3) are significantly more common, and easier to support in other CLIs. The quoted option (2) in particular is easier to read as the number of arguments increases.
Steps To Reproduce
Pass a quoted string with multiple arguments into
dbt list --output-keys
ordbt list --resource-types
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
No response
Additional Context
--select
with unions + intersections on CLI docs.getdbt.com#4040The text was updated successfully, but these errors were encountered: