From 8151031373c08ccd714a99f50783eafcb54d2010 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Wed, 10 Jun 2015 14:48:34 +0200 Subject: undo unfortunate variable naming: cfg -> conf! --- avg_weights | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'avg_weights') diff --git a/avg_weights b/avg_weights index 2e23440..36b051a 100755 --- a/avg_weights +++ b/avg_weights @@ -4,7 +4,7 @@ require 'zipf' require 'trollop' require 'zlib' -cfg = Trollop::options do +conf = Trollop::options do opt :weights_files, "a number of weights files: name value", :required => true opt :filter, "Filter if key does not appear in every file.", :type => :bool, :default => false end @@ -27,7 +27,7 @@ ARGV.each { |fn| n = ARGV.size.to_f h.each_pair { |k,w| - next if cfg[:filter] and w.size < n + next if conf[:filter] and w.size < n puts "#{k} #{w.inject(:+)/n}" } -- cgit v1.2.3