From 781d80805600d657c50910bef98d11763480c238 Mon Sep 17 00:00:00 2001 From: Kent 'picat' Gruber Date: Mon, 17 Sep 2018 09:54:07 -0400 Subject: [PATCH] use tr insteas of gsub --- lib/msf/core/modules/external/cli.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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