mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-29 11:10:40 +00:00
main: add --build-id option
Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
This commit is contained in:
6
main.cc
6
main.cc
@@ -448,6 +448,7 @@ int main(int ac, char** av) {
|
||||
auto init = app.get_options_description().add_options();
|
||||
|
||||
init("version", bpo::bool_switch(), "print version number and exit");
|
||||
init("build-id", bpo::bool_switch(), "print build-id and exit");
|
||||
|
||||
bpo::options_description deprecated("Deprecated options - ignored");
|
||||
deprecated.add_options()
|
||||
@@ -471,6 +472,11 @@ int main(int ac, char** av) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (vm["build-id"].as<bool>()) {
|
||||
fmt::print("{}\n", get_build_id());
|
||||
return 0;
|
||||
}
|
||||
|
||||
print_starting_message(ac, av, parsed_opts);
|
||||
|
||||
sharded<locator::token_metadata> token_metadata;
|
||||
|
||||
Reference in New Issue
Block a user