diff --git a/lib/msf/core/modules/external/cli.rb b/lib/msf/core/modules/external/cli.rb index 6bc871fe21..a976d1a848 100644 --- a/lib/msf/core/modules/external/cli.rb +++ b/lib/msf/core/modules/external/cli.rb @@ -104,7 +104,7 @@ module Msf::Modules::External::CLI def self.make_options(parser, out, args) args.each do |n, opt| - name = n.gsub '_', '-' + name = n.tr('_', '-') desc = if opt['default'] "#{opt['description']}, (default: #{opt['default']})" else