aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cmdline.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/cmdline.hxx')
-rw-r--r--libbuild2/cmdline.hxx29
1 files changed, 29 insertions, 0 deletions
diff --git a/libbuild2/cmdline.hxx b/libbuild2/cmdline.hxx
new file mode 100644
index 0000000..7bf41c2
--- /dev/null
+++ b/libbuild2/cmdline.hxx
@@ -0,0 +1,29 @@
+// file : libbuild2/cmdline.hxx -*- C++ -*-
+// license : MIT; see accompanying LICENSE file
+
+#ifndef LIBBUILD2_CMDLINE_HXX
+#define LIBBUILD2_CMDLINE_HXX
+
+#include <libbuild2/types.hxx>
+#include <libbuild2/forward.hxx>
+#include <libbuild2/utility.hxx>
+
+#include <libbuild2/b-options.hxx>
+#include <libbuild2/diagnostics.hxx>
+
+#include <libbuild2/export.hxx>
+
+namespace build2
+{
+ struct cmdline
+ {
+ strings cmd_vars;
+ string buildspec;
+ uint16_t verbosity;
+ };
+
+ LIBBUILD2_SYMEXPORT cmdline
+ parse_cmdline (tracer&, int argc, char* argv[], options&);
+}
+
+#endif // LIBBUILD2_CMDLINE_HXX