aboutsummaryrefslogtreecommitdiff
path: root/bdep/init.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bdep/init.cxx')
-rw-r--r--bdep/init.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/bdep/init.cxx b/bdep/init.cxx
index 94ce212..782dfe0 100644
--- a/bdep/init.cxx
+++ b/bdep/init.cxx
@@ -136,6 +136,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";
}