From cb5df9bbba46c5288d79c8c1e1b7db1174168b5a Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Wed, 5 Feb 2020 15:30:16 +0100 Subject: [PATCH] src/main.cpp: print a notice message if cli argument --threads is less than 2. --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 3a25014..572183e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -163,6 +163,8 @@ int main(int argc, char **argv) { #ifdef HAVE_THREADS option_num_threads = atoi(argv[p] + 10); if (option_num_threads < 2) { + std::cerr << "NOTICE: Number of threads less than 2 does not make sense." + << " So eosio-keygen will use 2." << std::endl; option_num_threads = 2; } #else