aboutsummaryrefslogtreecommitdiff
path: root/bdep/new.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bdep/new.cxx')
-rw-r--r--bdep/new.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx
index b04aba3..7b579fa 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -44,6 +44,9 @@ namespace bdep
{
if (!ca && !cc)
fail << n << " specified without --config-(add|create)";
+
+ if (o.wipe () && !cc)
+ fail << "--wipe specified without --config-create";
}
// Validate type options.