lib/hexlet/base_cli.rb in hexlet-0.1.1 vs lib/hexlet/base_cli.rb in hexlet-0.2.0

- old
+ new

@@ -24,13 +24,13 @@ logger = Logger.new(STDOUT) logger.level = options[:verbose] ? Logger::DEBUG : Logger::INFO logger end - def t key + def t key, options = {} command_name = @_invocations.values.last.last ns = self.class.to_s.downcase.split("::").last - I18n.t key, scope: [ns, command_name] + I18n.t key, options.merge(scope: [ns, command_name]) end def config if File.file?(CREDENTIALS_FILE) YAML.load_file(CREDENTIALS_FILE)