summaryrefslogtreecommitdiff
path: root/cli/cli.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cli/cli.cxx')
-rw-r--r--cli/cli.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/cli/cli.cxx b/cli/cli.cxx
index 0c7f3a1..c57caee 100644
--- a/cli/cli.cxx
+++ b/cli/cli.cxx
@@ -32,6 +32,19 @@ main (int argc, char* argv[])
cli::argv_file_scanner scan (argc, argv, "--options-file");
options ops (scan);
+ // Handle --build2-metadata (see also buildfile).
+ //
+ if (ops.build2_metadata ())
+ {
+ ostream& o (cout);
+
+ o << "# build2 buildfile cli" << endl
+ << "cli.version = '" << CLI_VERSION_ID << '\'' << endl
+ << "cli.checksum = '" << CLI_CHECKSUM << '\'' << endl;
+
+ return 0;
+ }
+
// Handle --version
//
if (ops.version ())