Skip to content

Commit

Permalink
Merge pull request #7993 from ggbecker/fix_rules-print-help-when-no-cmd
Browse files Browse the repository at this point in the history
fix_rules.py: Set subcommand required
  • Loading branch information
jan-cerny authored Dec 13, 2021
2 parents d65b955 + 2899246 commit a1182a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/fix_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,7 @@ def parse_args():
help="Path to root of the project directory")
parser.add_argument("--product", "-p", help="Path to the main product.yml")
subparsers = parser.add_subparsers(title="command", help="What to perform.")
subparsers.required = True
create_parser_from_functions(subparsers)
create_other_parsers(subparsers)
return parser.parse_args()
Expand Down

0 comments on commit a1182a3

Please sign in to comment.