-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CT-1737] Support all "global" flags after all subcommands #6497
Comments
Per BLG on 1/17/23 converting to a spike.. this is a lot of work and has a lot of potential pitfalls. |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days. |
One way to accomplish this goal: all global/root parameters should also be defined on every single subcommand, so that you can pass them before or after that subcommand. Considerations:
Without being too clever, I think this could be a reasonable way to go for now. Then, we should update our documentation to encourage that users always pass flags after the subcommand. |
From refinement meeting:
|
@jtcohen6 What's the expected behavior in the following scenarios:
|
@aranke Current state (since v1.5) is that we raise an error in both cases. I think we should preserve that behavior. dbt-core/core/dbt/cli/flags.py Lines 97 to 105 in d597b80
(Implemented in #7303) |
… subcommands (#8734) Co-authored-by: Kshitij Aranke <[email protected]>
… subcommands (#8732) Co-authored-by: Kshitij Aranke <[email protected]>
See comment below for updated proposal
We currently distinguish between two types of flags:
--no-use-color
--select
,--full-refresh
IMO this is pretty confusing for end users! We should really seek to support flags in any order (and resolve any resulting ambiguities by actually renaming flags). I know we implemented the new CLI modeling in accordance with the old CLI model — parity is a good goal to shoot for with any refactor — but it would be great to just support both of these, seamlessly and equivalently:
The text was updated successfully, but these errors were encountered: