Skip to content

Commit

Permalink
fix: get all available rules from the helpers.rules object
Browse files Browse the repository at this point in the history
  • Loading branch information
arifer612 committed Aug 4, 2024
1 parent 4b2c929 commit fa174b8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docker_tag_updater/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"""

import argparse
from .helpers import rules


ivc_parser = argparse.ArgumentParser(
Expand Down Expand Up @@ -46,8 +47,11 @@
ivc_parser.add_argument(
"-r",
"--rule",
choices=["default", "lscr"],
help="The semver regex rule.",
choices=list(rules.keys()),
help=f"""
The semver regex rule. Other available options are their aliases, i.e.,
{list(rules._rule_aliases.keys())}
""",
default="default",
)
ivc_parser.add_argument(
Expand Down

0 comments on commit fa174b8

Please sign in to comment.