msfdb default to database only

This commit is contained in:
dwelch-r7
2021-05-12 11:48:56 +01:00
parent e424f65c1f
commit 086f2961dc
+3 -3
View File
@@ -56,7 +56,7 @@ require 'msfenv'
@environments = %w(production development)
@options = {
component: :all,
component: :database,
debug: false,
msf_db_name: 'msf',
msf_db_user: 'msf',
@@ -758,7 +758,7 @@ def parse_args(args)
opts.separator('Manage a Metasploit Framework database and web service')
opts.separator('')
opts.separator('General Options:')
opts.on('--component COMPONENT', @components + ['all'], 'Component used with provided command (default: all)',
opts.on('--component COMPONENT', @components + ['all'], 'Component used with provided command (default: database)',
" (#{@components.join(', ')})") { |component|
@options[:component] = component.to_sym
}
@@ -1003,7 +1003,7 @@ if $PROGRAM_NAME == __FILE__
puts
}
else
puts "Running the '#{command}' command for the #{@options[:component].to_s}:"
puts "Running the '#{command}' command for the #{@options[:component]}:"
invoke_command(commands, @options[:component], command)
end
end