aboutsummaryrefslogtreecommitdiff
path: root/bdep/init.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-08-20 09:09:22 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-08-20 09:09:22 +0200
commit4d79c195d440f807e84235a8184b04a9f633cf94 (patch)
tree3c0f4a2ba118a6ffc588f0852a4721e556bc52e2 /bdep/init.cxx
parentba8e0b9f9866b47bc61b49323e4293ba90826e80 (diff)
Allow specifying config type with --type in bdep-config-create, bdep-init
Diffstat (limited to 'bdep/init.cxx')
-rw-r--r--bdep/init.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/bdep/init.cxx b/bdep/init.cxx
index a8d0658..067226b 100644
--- a/bdep/init.cxx
+++ b/bdep/init.cxx
@@ -307,7 +307,7 @@ namespace bdep
// Type of configuration being created, if --config-create is specified.
//
optional<string> cc (o.config_create_specified ()
- ? o.config_type ()
+ ? o.type ()
: optional<string> ());
if (o.empty ())
@@ -322,8 +322,8 @@ namespace bdep
if (!ca && !cc)
fail << n << " specified without --config-(add|create)";
- if (o.config_type_specified () && !cc)
- fail << "--config-type specified without --config-create";
+ if (o.type_specified () && !cc)
+ fail << "--type|--config-type specified without --config-create";
if (o.existing () && !cc)
fail << "--existing|-e specified without --config-create";