Skip to content

Commit

Permalink
Only run deops rules command group if no sub command could be found
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLovering committed Feb 4, 2024
1 parent 035a82b commit 177f92e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arthur/exts/fun/devops_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async def cog_load(self) -> None:
number, rule = line.split(".", maxsplit=1)
self.rules[int(number)] = rule.strip()

@group(name="rules", aliases=("rule",))
@group(name="rules", aliases=("rule",), invoke_without_command=True)
async def rules_group(self, ctx: Context, rules: Greedy[int]) -> None:
"""List the requested rule(s), or all of them if not defined."""
if rules:
Expand Down

0 comments on commit 177f92e

Please sign in to comment.