summaryrefslogtreecommitdiff
path: root/avg_weights
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-06-10 14:48:34 +0200
committerPatrick Simianer <p@simianer.de>2015-06-10 14:48:34 +0200
commit8151031373c08ccd714a99f50783eafcb54d2010 (patch)
tree1bcf6e78392978f4ae972a5dcc936a4c266f3d78 /avg_weights
parente137509a77e3a8c12af32852ebba893dacb53f85 (diff)
undo unfortunate variable naming: cfg -> conf!
Diffstat (limited to 'avg_weights')
-rwxr-xr-xavg_weights4
1 files changed, 2 insertions, 2 deletions
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}"
}