File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
gooddata-dbt/gooddata_dbt Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,13 @@ def set_dbt_cloud_args(parser: argparse.ArgumentParser) -> None:
9999 help = "dbt cloud token" ,
100100 default = os .getenv ("DBT_TOKEN" ),
101101 )
102+ parser .add_argument (
103+ "-dcd" ,
104+ "--allowed-degradation" ,
105+ type = int ,
106+ help = "How much performance of model executions can degrade before reported as warning, in percent" ,
107+ default = int (os .getenv ("DBT_ALLOWED_DEGRADATION" , "100" )),
108+ )
102109
103110
104111def set_dbt_cloud_stats_args (parser : argparse .ArgumentParser ) -> None :
@@ -109,14 +116,6 @@ def set_dbt_cloud_stats_args(parser: argparse.ArgumentParser) -> None:
109116 default = os .getenv ("DBT_ENVIRONMENT_ID" ),
110117 )
111118
112- parser .add_argument (
113- "-dcd" ,
114- "--allowed-degradation" ,
115- type = int ,
116- help = "How much performance of model executions can degrade before reported as warning, in percent" ,
117- default = int (os .getenv ("DBT_ALLOWED_DEGRADATION" , "100" )),
118- )
119-
120119
121120def parse_arguments (description : str ) -> argparse .Namespace :
122121 parser = get_parser (description )
You can’t perform that action at this time.
0 commit comments