bin/i18n-tasks in i18n-tasks-0.3.4 vs bin/i18n-tasks in i18n-tasks-0.3.5

- old
+ new

@@ -26,18 +26,14 @@ meth = command[0] opts = command[1].to_hash.reject{ |k, v| v.nil? } args = command[2] if opts.empty? && args.empty? - if ENV['VERBOSE'] - STDERR.puts Term::ANSIColor.green "i18n-tasks: run #{meth.tr('_', '-')} without arguments" - end + ::I18n::Tasks.log_verbose "run #{meth.tr('_', '-')} without arguments" cmd.send meth else opts = opts.merge(arguments: args) unless args.empty? - if ENV['VERBOSE'] - STDERR.puts Term::ANSIColor.green "i18n-tasks: run #{meth.tr('_', '-')} with #{opts.map { |k, v| "#{k}=#{v}" } * ' '}" - end + ::I18n::Tasks.log_verbose "run #{meth.tr('_', '-')} with #{opts.map { |k, v| "#{k}=#{v}" } * ' '}" cmd.send meth, opts end else STDERR.puts Term::ANSIColor.red "Command unknown: #{ARGV[0]}" if ARGV[0] puts slop.help