From 3183f3bb927a90783ae0aeaf190a0919377aabe4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 21 Apr 2020 12:02:15 +0200 Subject: Add metadata --- cli/cli.cxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'cli/cli.cxx') 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 ()) -- cgit v1.1