mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Simplify printing of engine info
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
11
src/main.cpp
11
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user