Issue #548 resolved

Feature Requested for --version added
Expected Output
```$ Version Major.Minor```
This commit is contained in:
argakiig 2018-01-27 00:43:58 -05:00
commit 2d28e2aa6d

View file

@ -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"))
{