lib/pdk/cli/util/option_normalizer.rb in pdk-2.6.1 vs lib/pdk/cli/util/option_normalizer.rb in pdk-2.7.0

- old
+ new

@@ -3,11 +3,11 @@ module PDK module CLI module Util class OptionNormalizer def self.comma_separated_list_to_array(list, _options = {}) - raise _('Error: expected comma separated list') unless OptionValidator.comma_separated_list?(list) + raise 'Error: expected comma separated list' unless OptionValidator.comma_separated_list?(list) list.split(',').compact end # Parse one or more format:target pairs into report format # specifications. @@ -29,10 +29,10 @@ format, target = f.split(':', 2) begin OptionValidator.enum(format, PDK::Report.formats) rescue ArgumentError - raise PDK::CLI::ExitWithError, _("'%{name}' is not a valid report format (%{valid})") % { + raise PDK::CLI::ExitWithError, "'%{name}' is not a valid report format (%{valid})" % { name: format, valid: PDK::Report.formats.join(', '), } end