aboutsummaryrefslogtreecommitdiff
path: root/bdep/utility.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-03-29 16:25:36 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-03-29 16:25:36 +0200
commitc4d8116334a3fb235f729566b1095112aa2ac9cb (patch)
treec0656696e09c3bbe07202e903fe29c9673c88cfa /bdep/utility.hxx
parent14196b5836b01a48044d73b09dff96da3a97751b (diff)
Setup config subcommand handling infrastructure
Diffstat (limited to 'bdep/utility.hxx')
-rw-r--r--bdep/utility.hxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/bdep/utility.hxx b/bdep/utility.hxx
index f3e2c73..865268a 100644
--- a/bdep/utility.hxx
+++ b/bdep/utility.hxx
@@ -19,6 +19,7 @@
#include <bdep/types.hxx>
#include <bdep/version.hxx>
+#include <bdep/common-options.hxx>
namespace bdep
{
@@ -100,8 +101,6 @@ namespace bdep
// Run the bpkg process.
//
- class common_options;
-
const char*
name_bpkg (const common_options&);
@@ -140,6 +139,16 @@ namespace bdep
ostream&,
const string& name,
const char* what);
+
+ // CLI (sub)command parsing helper.
+ //
+ template <typename C>
+ C
+ parse_command (cli::scanner& scan, const char* what, const char* help);
+
+ template <typename C>
+ bool
+ parse_command (cli::scanner& scan, C&);
}
#include <bdep/utility.txx>