X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmain.cpp;h=765cd2caa52b93d52ff9c7bbe0fb984b43d0676b;hb=ad43ce143664953087b44dd3b4324f77c212bd46;hp=9b1b5ecfe4f373ce3fc6849cb64a0b5c86e481e0;hpb=0a6532a39d2e2cfd92ba0a2c4fa8c6ad6c29b581;p=stockfish diff --git a/src/main.cpp b/src/main.cpp index 9b1b5ecf..765cd2ca 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -40,19 +40,18 @@ int main(int argc, char* argv[]) { Search::init(); Threads.init(); - if (argc < 2) - { - cout << engine_name() << " by " << engine_authors() << endl; + cout << engine_info() << endl; + + if (argc == 1) uci_loop(); - } + else if (string(argv[1]) == "bench") benchmark(argc, argv); else - cout << "Usage: stockfish bench [hash size = 128] [threads = 1] " + cerr << "\nUsage: stockfish bench [hash size = 128] [threads = 1] " << "[limit = 12] [fen positions file = default] " << "[limited by depth, time, nodes or perft = depth]" << endl; Threads.exit(); - return 0; }