mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Merge pull request #35309 from Avogar/fix-client-host-help
Fix disappeared host and port from client help message
This commit is contained in:
commit
ea5ace7b18
@ -787,6 +787,7 @@ void Client::printHelpMessage(const OptionsDescription & options_description)
|
||||
{
|
||||
std::cout << options_description.main_description.value() << "\n";
|
||||
std::cout << options_description.external_description.value() << "\n";
|
||||
std::cout << options_description.hosts_and_ports_description.value() << "\n";
|
||||
std::cout << "In addition, --param_name=value can be specified for substitution of parameters for parametrized queries.\n";
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,2 @@
|
||||
OK
|
||||
OK
|
9
tests/queries/0_stateless/02239_client_host_help.sh
Executable file
9
tests/queries/0_stateless/02239_client_host_help.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
# shellcheck source=../shell_config.sh
|
||||
. "$CURDIR"/../shell_config.sh
|
||||
|
||||
${CLICKHOUSE_CLIENT} --help | grep -q "\-\-host" && echo "OK" || echo "FAIL"
|
||||
${CLICKHOUSE_CLIENT} --help | grep -q "\-\-port arg" && echo "OK" || echo "FAIL"
|
||||
|
Loading…
Reference in New Issue
Block a user