diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-04-21 12:02:15 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-04-21 12:02:15 +0200 |
commit | 3183f3bb927a90783ae0aeaf190a0919377aabe4 (patch) | |
tree | 0e66080e788c61651ae44de62a6d722bef8a0fe1 /cli/cli.cxx | |
parent | 7b04b179fb7831087474d9cba104fa6076e31c47 (diff) |
Add metadata
Diffstat (limited to 'cli/cli.cxx')
-rw-r--r-- | cli/cli.cxx | 13 |
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 ()) |