From 49887d80b7986ba3df5306ea0aa985034fdb0444 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 4 Jun 2019 13:40:26 +0200 Subject: Add --existing|-e option to bdep-{init,new} -C and bdep-config create modes With this option bdep initializes a bpkg configuration based on an existing build system configuration instead of creating a new one. --- 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 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"; } -- cgit v1.1