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/init.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bdep/init.cxx') 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"; } -- cgit v1.1