Fixed #5335. clickhouse-local. Print help if no arguments are passed

This commit is contained in:
nagorny 2019-12-16 12:05:26 +03:00
parent f055239cde
commit 03f0909552

View File

@ -443,7 +443,7 @@ void LocalServer::init(int argc, char ** argv)
exit(0);
}
if (options.count("help"))
if (options.empty() || options.count("help"))
{
std::cout << getHelpHeader() << "\n";
std::cout << description << "\n";