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