Print help when `repeat` is run with no commands

GSoC/Meterpreter_Web_Console
Adam Cammack 2018-09-13 11:27:05 -05:00
parent 04cc7843a4
commit 175dec7ade
No known key found for this signature in database
GPG Key ID: C9378BA088092D66
1 changed files with 3 additions and 0 deletions

View File

@ -2132,6 +2132,9 @@ class Core
Shellwords.shelljoin(c)
end
# Print help if we have no commands, or all the commands are empty
return cmd_repeat '-h' if cmds.all? &:empty?
begin
looper.call do
cmds.each do |c|