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 c74c90c..e94229f 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -60,6 +60,9 @@ namespace bdep
if (!ca && !cc)
fail << n << " specified without --config-(add|create)";
+ if (o.existing () && !cc)
+ fail << "--existing|-e specified without --config-create";
+
if (o.wipe () && !cc)
fail << "--wipe specified without --config-create";
}