Print warnings for client and extract_from_config options in clickhouse-test

This commit is contained in:
Vladimir C 2023-01-26 11:43:54 +01:00 committed by GitHub
parent 6cc873efe0
commit 25f32d5abb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: