Skip to content

Commit

Permalink
fix(args: get_parser_for_action): help could be both action and actio…
Browse files Browse the repository at this point in the history
…n-modifier so handle it slightly differently
  • Loading branch information
actionless committed Apr 11, 2024
1 parent e97ed90 commit 5ca3270
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pikaur/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,9 +660,9 @@ def get_parser_for_action(
parsed_action = parser.parse_pikaur_args(args)
pikaur_action: str | None = None
for action_name in ALL_ACTIONS:
if getattr(parsed_action, action_name):
if getattr(parsed_action, action_name) and action_name != "help":
pikaur_action = action_name
if pikaur_action in {"help", None}:
if (pikaur_action is None):
return parser, []

help_msgs: list[HelpMessage] = []
Expand Down

0 comments on commit 5ca3270

Please sign in to comment.