This will try to load any command in the load path to show in help.
# File railties/lib/rails/command/behavior.rb, line 56
def lookup!
$LOAD_PATH.each do |base|
Dir[File.join(base, *file_lookup_paths)].each do |path|
path = path.delete_prefix("#{base}/")
require path
rescue Exception
# No problem
end
end
end