mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Print warnings for client and extract_from_config options in clickhouse-test
This commit is contained in:
parent
6cc873efe0
commit
25f32d5abb
@ -2062,7 +2062,14 @@ def parse_args():
|
||||
default=find_binary("clickhouse"),
|
||||
help="Path to clickhouse binary or name of binary in PATH",
|
||||
)
|
||||
parser.add_argument(
|
||||
"-c",
|
||||
"--client",
|
||||
help="Path to clickhouse-client, this option is useless"
|
||||
"name of binary in PATH",
|
||||
)
|
||||
|
||||
parser.add_argument("--extract_from_config", help="extract-from-config program")
|
||||
parser.add_argument(
|
||||
"--configclient", help="Client config (if you use not default ports)"
|
||||
)
|
||||
@ -2353,7 +2360,19 @@ if __name__ == "__main__":
|
||||
if args.tmp is None:
|
||||
args.tmp = args.queries
|
||||
|
||||
if (args.client):
|
||||
print(
|
||||
"WARNING: --client option is deprecated and will be removed the the future, use --binary instead",
|
||||
file=sys.stderr,
|
||||
)
|
||||
|
||||
args.client = find_clickhouse_command(args.binary, "client")
|
||||
|
||||
if (args.extract_from_config):
|
||||
print(
|
||||
"WARNING: --extract_from_config option is deprecated and will be removed the the future",
|
||||
file=sys.stderr,
|
||||
)
|
||||
args.extract_from_config = find_clickhouse_command(args.binary, "extract-from-config")
|
||||
|
||||
if args.configclient:
|
||||
|
Loading…
Reference in New Issue
Block a user