From 61cdde35094fc655eac2e6968b465f217e91d0ac Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 14 May 2018 16:06:18 +0200 Subject: Add --wipe option to configuration creating commands --- bdep/new.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bdep/new.cxx') 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. -- cgit