Skip to content

Commit

Permalink
Merge pull request #434 from h00die/module_dash_h
Browse files Browse the repository at this point in the history
UX: Add -h to run/exec to display help
  • Loading branch information
DaveYesland authored Jun 4, 2024
2 parents 2478696 + c1863d1 commit 04a5de1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pacu/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 04a5de1

Please sign in to comment.