ClickHouse/tests/testflows/helpers/argparser.py
Vitaliy Zakaznikov 45d819949a * Moving testflows tests into tests/testflows directory.
* Adding a simple README.md.
2020-07-02 17:08:35 +02:00

14 lines
496 B
Python

import os
def argparser(parser):
"""Default argument parser for regressions.
"""
parser.add_argument("--local",
action="store_true",
help="run regression in local mode", default=False)
parser.add_argument("--clickhouse-binary-path",
type=str, dest="clickhouse_binary_path",
help="path to ClickHouse binary, default: /usr/bin/clickhouse", metavar="path",
default=os.getenv("CLICKHOUSE_TESTS_SERVER_BIN_PATH", "/usr/bin/clickhouse"))