diff --git a/lib/msf/ui/console/command_dispatcher/developer.rb b/lib/msf/ui/console/command_dispatcher/developer.rb index b23bb7f4b1..7e64665258 100644 --- a/lib/msf/ui/console/command_dispatcher/developer.rb +++ b/lib/msf/ui/console/command_dispatcher/developer.rb @@ -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