Skip to content

docs: improve help texts #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions src/image_tools/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,23 @@ def bake_args() -> Namespace:
parser.add_argument(
"-c",
"--configuration",
help="Configuration file.",
help="Configuration file. Default: './conf.py'.",
default="./conf.py",
),
)
parser.add_argument(
"-i",
"--image-version",
help="Image version",
default="0.0.0-dev",
type=check_image_version_format,
default="0.0.0-dev",
help="Image version. Default: 0.0.0-dev."
)
parser.add_argument(
"-p",
"--product",
action="append",
help="Product to build images for. For example 'druid' or 'druid=28.0.1' to build a specific version."
)
parser.add_argument("-p", "--product", help="Product to build images for", action="append")
parser.add_argument(
"--shard-count",
type=positive_int,
Expand All @@ -48,7 +53,7 @@ def bake_args() -> Namespace:
default=0,
help="Build shard number M out of --shard-count. Shards are zero-indexed.",
)
parser.add_argument("-u", "--push", help="Push images", action="store_true")
parser.add_argument("-u", "--push", help="Push images.", action="store_true")
parser.add_argument("-d", "--dry", help="Dry run.", action="store_true")
parser.add_argument(
"-a",
Expand All @@ -60,13 +65,13 @@ def bake_args() -> Namespace:
parser.add_argument(
"-o",
"--organization",
help="Organization name within the given registry. Default: stackable",
help="Organization name within the given registry. Default: stackable.",
default="stackable",
)
parser.add_argument(
"-r",
"--registry",
help="Image registry to publish to. Default: docker.stackable.tech",
help="Image registry to publish to. Default: docker.stackable.tech.",
default="docker.stackable.tech",
)
(
Expand Down