Land #10711, help on empty args for reload_lib

GSoC/Meterpreter_Web_Console
William Vu 2018-09-27 23:24:51 -05:00
commit 5d927399c7
No known key found for this signature in database
GPG Key ID: 68BD00CE25866743
1 changed files with 5 additions and 2 deletions

View File

@ -244,12 +244,15 @@ class Msf::Ui::Console::CommandDispatcher::Developer
opts.on '-a', '--all', 'Reload all* changed files in your current Git working tree.
*Excludes modules and non-Ruby files.' do
reload_changed_files
return
return reload_changed_files
end
end
# The remaining unparsed arguments are files
files = options.order(args)
return print(options.help) if files.empty?
files.each { |file| reload_file(file) }
end