From af2ee063abea8235a8cbd1448533e4f4fbc0d0af 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-enqueue | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'bin/custodian-enqueue') diff --git a/bin/custodian-enqueue b/bin/custodian-enqueue index b1be84d..83e462e 100755 --- a/bin/custodian-enqueue +++ b/bin/custodian-enqueue @@ -70,23 +70,23 @@ if __FILE__ == $PROGRAM_NAME then begin opts = GetoptLong.new( - [ "--dump", "-d", GetoptLong::NO_ARGUMENT ], - [ "--test", GetoptLong::NO_ARGUMENT ], - [ "--file", "-f", GetoptLong::REQUIRED_ARGUMENT ], - [ "--help", "-h", GetoptLong::NO_ARGUMENT ], - [ "--manual","-m", GetoptLong::NO_ARGUMENT ] + [ '--dump', '-d', GetoptLong::NO_ARGUMENT ], + [ '--test', GetoptLong::NO_ARGUMENT ], + [ '--file', '-f', GetoptLong::REQUIRED_ARGUMENT ], + [ '--help', '-h', GetoptLong::NO_ARGUMENT ], + [ '--manual','-m', GetoptLong::NO_ARGUMENT ] ) opts.each do |opt, arg| case opt - when "--dump" then - ENV["DUMP"] = "1" - when "--test" then - ENV["TEST"] = "1" - when "--file" then - ENV["FILE"] = arg - when "--help" then + when '--dump' then + ENV['DUMP'] = '1' + when '--test' then + ENV['TEST'] = '1' + when '--file' then + ENV['FILE'] = arg + when '--help' then $help = true - when "--manual" then + when '--manual' then $manual = true end end -- cgit v1.2.1