diff --git a/docker/packager/packager b/docker/packager/packager index e392db677f6..4ba03f7633e 100755 --- a/docker/packager/packager +++ b/docker/packager/packager @@ -241,18 +241,23 @@ def parse_env_variables( if __name__ == "__main__": logging.basicConfig(level=logging.INFO, format="%(asctime)s %(message)s") parser = argparse.ArgumentParser( - description="ClickHouse building script using prebuilt Docker image" + formatter_class=argparse.ArgumentDefaultsHelpFormatter, + description="ClickHouse building script using prebuilt Docker image", ) # 'performance' creates a combined .tgz with server # and configs to be used for performance test. parser.add_argument( - "--package-type", choices=["deb", "binary", "performance"], required=True + "--package-type", + choices=("deb", "binary", "performance"), + required=True, + help="a build type", ) parser.add_argument( "--clickhouse-repo-path", default=os.path.join( os.path.dirname(os.path.abspath(__file__)), os.pardir, os.pardir ), + help="ClickHouse git repository", ) parser.add_argument("--output-dir", required=True) parser.add_argument("--build-type", choices=("debug", ""), default="") @@ -278,6 +283,7 @@ if __name__ == "__main__": "gcc-11", ), default="clang-13", + help="a compiler to use", ) parser.add_argument( "--sanitizer", @@ -286,19 +292,25 @@ if __name__ == "__main__": ) parser.add_argument("--split-binary", action="store_true") parser.add_argument("--clang-tidy", action="store_true") - parser.add_argument("--cache", choices=("", "ccache", "distcc"), default="") - parser.add_argument("--ccache_dir", default=os.getenv("HOME", "") + "/.ccache") + parser.add_argument("--cache", choices=("ccache", "distcc", ""), default="") + parser.add_argument( + "--ccache_dir", + default=os.getenv("HOME", "") + "/.ccache", + help="a directory with ccache", + ) parser.add_argument("--distcc-hosts", nargs="+") parser.add_argument("--force-build-image", action="store_true") parser.add_argument("--version") - parser.add_argument("--author", default="clickhouse") + parser.add_argument("--author", default="clickhouse", help="a package author") parser.add_argument("--official", action="store_true") parser.add_argument("--alien-pkgs", nargs="+", default=[]) parser.add_argument("--with-coverage", action="store_true") parser.add_argument( "--with-binaries", choices=("programs", "tests", ""), default="" ) - parser.add_argument("--docker-image-version", default="latest") + parser.add_argument( + "--docker-image-version", default="latest", help="docker image tag to use" + ) args = parser.parse_args() if not os.path.isabs(args.output_dir):