mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Adds command line parameter -V that shows build version to the binaries.
Build number controlled in top level CMakeLists.txt file via -DBUILD_VERSION variable. Usage: adnl-pong -V validator-engine -V and so on.
This commit is contained in:
parent
a12e3db5d3
commit
41a3418b7b
17 changed files with 195 additions and 124 deletions
|
@ -264,6 +264,10 @@ int main(int argc, char *argv[]) {
|
|||
int v = VERBOSITY_NAME(FATAL) + (td::to_integer<int>(arg));
|
||||
SET_VERBOSITY_LEVEL(v);
|
||||
});
|
||||
p.add_option('V', "version", "shows http-proxy build version", [&]() {
|
||||
std::cout << "http-proxy build version: [" << BUILD_VERSION << "]\n";
|
||||
std::exit(0);
|
||||
});
|
||||
p.add_option('h', "help", "prints_help", [&]() {
|
||||
char b[10240];
|
||||
td::StringBuilder sb(td::MutableSlice{b, 10000});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue