use tr insteas of gsub

GSoC/Meterpreter_Web_Console
Kent 'picat' Gruber 2018-09-17 09:54:07 -04:00
parent c3ca1a6cb8
commit 781d808056
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ module Msf::Modules::External::CLI
def self.make_options(parser, out, args) def self.make_options(parser, out, args)
args.each do |n, opt| args.each do |n, opt|
name = n.gsub '_', '-' name = n.tr('_', '-')
desc = if opt['default'] desc = if opt['default']
"#{opt['description']}, (default: #{opt['default']})" "#{opt['description']}, (default: #{opt['default']})"
else else