Skip to content

Commit

Permalink
move remaining flags to global_flags
Browse files Browse the repository at this point in the history
  • Loading branch information
aranke committed Sep 26, 2023
1 parent 913b1cd commit 168f846
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/dbt/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def global_flags(func):
@p.fail_fast
@p.log_cache_events
@p.log_file_max_bytes
@p.log_format
@p.log_format_file
@p.log_level
@p.log_level_file
Expand All @@ -149,6 +150,8 @@ def global_flags(func):
@p.use_experimental_parser
@p.version
@p.version_check
@p.warn_error
@p.warn_error_options
@p.write_json
@functools.wraps(func)
def wrapper(*args, **kwargs):
Expand All @@ -166,9 +169,6 @@ def wrapper(*args, **kwargs):
)
@click.pass_context
@global_flags
@p.warn_error
@p.warn_error_options
@p.log_format
def cli(ctx, **kwargs):
"""An ELT tool for managing your SQL transformations and data models.
For more documentation on these commands, visit: docs.getdbt.com
Expand Down

0 comments on commit 168f846

Please sign in to comment.