mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 03:22:14 +00:00
Merge pull request #41975 from ClickHouse/release-help-string
Add a warning message to release.py script, require release type
This commit is contained in:
commit
3ab0ce9d15
@ -444,7 +444,8 @@ def parse_args() -> argparse.Namespace:
|
||||
parser = argparse.ArgumentParser(
|
||||
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
|
||||
description="Script to release a new ClickHouse version, requires `git` and "
|
||||
"`gh` (github-cli) commands",
|
||||
"`gh` (github-cli) commands "
|
||||
"!!! LAUNCH IT ONLY FROM THE MASTER BRANCH !!!",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
@ -468,10 +469,11 @@ def parse_args() -> argparse.Namespace:
|
||||
)
|
||||
parser.add_argument(
|
||||
"--type",
|
||||
default="minor",
|
||||
required=True,
|
||||
choices=Release.BIG + Release.SMALL,
|
||||
dest="release_type",
|
||||
help="a release type, new branch is created only for 'major' and 'minor'",
|
||||
help="a release type to bump the major.minor.patch version part, "
|
||||
"new branch is created only for 'major' and 'minor'",
|
||||
)
|
||||
parser.add_argument("--with-release-branch", default=True, help=argparse.SUPPRESS)
|
||||
parser.add_argument(
|
||||
|
Loading…
Reference in New Issue
Block a user