aboutsummaryrefslogtreecommitdiff
path: root/bpkg/bpkg.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-07 15:59:37 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-07 15:59:37 +0200
commitb1078fdb9fac747c19dbdacd24c2838aae7d9f6b (patch)
tree3452bab97d91b063ac3cac2cb3d84ae184c21858 /bpkg/bpkg.cxx
parent8f94aaa067426a259f5396abdaf4945671799b5c (diff)
Implement cfg-create command
Diffstat (limited to 'bpkg/bpkg.cxx')
-rw-r--r--bpkg/bpkg.cxx15
1 files changed, 14 insertions, 1 deletions
diff --git a/bpkg/bpkg.cxx b/bpkg/bpkg.cxx
index 8811ba8..eeafa09 100644
--- a/bpkg/bpkg.cxx
+++ b/bpkg/bpkg.cxx
@@ -14,6 +14,7 @@
// Commands.
//
#include <bpkg/help>
+#include <bpkg/cfg-create>
#include <bpkg/rep-create>
using namespace std;
@@ -35,7 +36,7 @@ parse (const common_options& co, cli::scanner& s)
// Global initializations.
//
- // Trace verbosity.
+ // Diagnostics verbosity.
//
verb = o.verbose_specified () ? o.verbose () : o.v () ? 2 : o.q () ? 0 : 1;
@@ -134,6 +135,18 @@ try
return 0;
}
+ // cfg-create
+ //
+ if (cmd.cfg_create ())
+ {
+ if (h)
+ help (ho, "cfg-create", cfg_create_options::print_usage);
+ else
+ cfg_create (parse<cfg_create_options> (co, args), args);
+
+ return 0;
+ }
+
// rep-create
//
if (cmd.rep_create ())