From a22b8e96ead33b0f97ed5243dbad7f7b6cd5135d Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 9 Mar 2015 13:19:15 +0000 Subject: Prefer single-quotes when you don't need interpolation. So "foo" is less good than 'foo'. --- bin/custodian-queue | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'bin/custodian-queue') diff --git a/bin/custodian-queue b/bin/custodian-queue index 66bf2ba..26f214d 100755 --- a/bin/custodian-queue +++ b/bin/custodian-queue @@ -63,27 +63,27 @@ if __FILE__ == $PROGRAM_NAME then begin opts = GetoptLong.new( - [ "--flush", "-f", GetoptLong::NO_ARGUMENT ], - [ "--help", "-h", GetoptLong::NO_ARGUMENT ], - [ "--manual", "-m", GetoptLong::NO_ARGUMENT ], - [ "--monitor", "-M", GetoptLong::OPTIONAL_ARGUMENT ], - [ "--stats", "-s", GetoptLong::NO_ARGUMENT ] + [ '--flush', '-f', GetoptLong::NO_ARGUMENT ], + [ '--help', '-h', GetoptLong::NO_ARGUMENT ], + [ '--manual', '-m', GetoptLong::NO_ARGUMENT ], + [ '--monitor', '-M', GetoptLong::OPTIONAL_ARGUMENT ], + [ '--stats', '-s', GetoptLong::NO_ARGUMENT ] ) opts.each do |opt, arg| case opt - when "--monitor" then + when '--monitor' then if arg $MONITOR = arg.to_i else $MONITOR = 5000 end - when "--stats" then + when '--stats' then $STATS = true - when "--flush" then + when '--flush' then $FLUSH = true - when "--help" then + when '--help' then $help = true - when "--manual" then + when '--manual' then $manual = true end end -- cgit v1.2.1