diff options
author | Patrick Simianer <p@simianer.de> | 2015-06-10 14:48:34 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2015-06-10 14:48:34 +0200 |
commit | 8151031373c08ccd714a99f50783eafcb54d2010 (patch) | |
tree | 1bcf6e78392978f4ae972a5dcc936a4c266f3d78 /avg | |
parent | e137509a77e3a8c12af32852ebba893dacb53f85 (diff) |
undo unfortunate variable naming: cfg -> conf!
Diffstat (limited to 'avg')
-rwxr-xr-x | avg | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2,7 +2,7 @@ require 'trollop' -cfg = Trollop::options do +conf = Trollop::options do banner "avg < <one number per line>" opt :round, "Number of digits after decimal point.", :type => :int, :default => -1 end @@ -16,8 +16,8 @@ end avg = sum/i.to_f -if cfg[:round] >= 0 - puts avg.round cfg[:round] +if conf[:round] >= 0 + puts avg.round conf[:round] else puts avg end |