From 90fb908376a2b8b9fd114d17573d64ddf0e07f76 Mon Sep 17 00:00:00 2001 From: Drew Banin Date: Mon, 11 Mar 2019 19:42:14 -0400 Subject: [PATCH] re-add --warn-error flag --- core/dbt/main.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/dbt/main.py b/core/dbt/main.py index 7f9f36255e9..511e092a7e5 100644 --- a/core/dbt/main.py +++ b/core/dbt/main.py @@ -687,6 +687,14 @@ def parse_args(args): help='''Run schema validations at runtime. This will surface bugs in dbt, but may incur a performance penalty.''') + p.add_argument( + '--warn-error', + action='store_true', + help='''If dbt would normally warn, instead raise an exception. + Examples include --models that selects nothing, deprecations, + configurations with no associated models, invalid test configurations, + and missing sources/refs in tests''') + # if set, run dbt in single-threaded mode: thread count is ignored, and # calls go through `map` instead of the thread pool. This is useful for # getting performance information about aspects of dbt that normally run in