From 07f6d598430db3df2c1f09cba471b2bc5426f159 Mon Sep 17 00:00:00 2001 From: h00die Date: Wed, 29 May 2024 11:58:29 -0400 Subject: [PATCH] Add -h to run/exec to display help --- pacu/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pacu/main.py b/pacu/main.py index c122835c..152171d1 100644 --- a/pacu/main.py +++ b/pacu/main.py @@ -782,7 +782,9 @@ def parse_list_command(self, command): self.list_modules(command[2], by_category=True) def parse_exec_module_command(self, command: List[str]) -> None: - if len(command) > 1: + if len(command) > 1 and command[-1] == "-h": + self.parse_help_command(command) + elif len(command) > 1: self.exec_module(command) else: print('The {} command requires a module name. Try using the module search function.'.format(command))