Issue #548 resolved
Feature Requested for --version added Expected Output ```$ Version Major.Minor```
This commit is contained in:
parent
36b09b862e
commit
2d28e2aa6d
1 changed files with 5 additions and 0 deletions
|
@ -115,6 +115,7 @@ int main (int argc, char * const * argv)
|
|||
// clang-format off
|
||||
description.add_options ()
|
||||
("help", "Print out options")
|
||||
("version", "Prints out version")
|
||||
("daemon", "Start node daemon")
|
||||
("debug_block_count", "Display the number of block")
|
||||
("debug_bootstrap_generate", "Generate bootstrap sequence of blocks")
|
||||
|
@ -422,6 +423,10 @@ int main (int argc, char * const * argv)
|
|||
std::cerr << boost::str (boost::format ("%|1$ 12d|\n") % std::chrono::duration_cast<std::chrono::microseconds> (end1 - begin1).count ());
|
||||
}
|
||||
}
|
||||
else if (vm.count ("version"))
|
||||
{
|
||||
std::cout << "Version " << RAIBLOCKS_VERSION_MAJOR << "." << RAIBLOCKS_VERSION_MINOR << std::endl;
|
||||
}
|
||||
#if 0
|
||||
else if (vm.count ("debug_xorshift_profile"))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue