Use bool_switch instead of value<bool> for 'force' option in Install.cpp

This commit is contained in:
vdimir 2021-05-24 16:53:30 +03:00
parent d13248b8a4
commit fce6156e04
No known key found for this signature in database
GPG Key ID: F57B3E10A21DBB31

View File

@ -983,7 +983,7 @@ int mainEntryClickHouseStop(int argc, char ** argv)
desc.add_options() desc.add_options()
("help,h", "produce help message") ("help,h", "produce help message")
("pid-path", po::value<std::string>()->default_value("/var/run/clickhouse-server"), "directory for pid file") ("pid-path", po::value<std::string>()->default_value("/var/run/clickhouse-server"), "directory for pid file")
("force", po::value<bool>()->default_value(false), "Stop with KILL signal instead of TERM") ("force", po::bool_switch(), "Stop with KILL signal instead of TERM")
; ;
po::variables_map options; po::variables_map options;