diff options
| author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:19:15 +0000 | 
|---|---|---|
| committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:19:15 +0000 | 
| commit | af2ee063abea8235a8cbd1448533e4f4fbc0d0af (patch) | |
| tree | 969e448e2d5995f7e838a68ef1d25d54df9b8d29 /bin/custodian-dequeue | |
| parent | bb2ec1f07af747c69f2fd1e5b70c41b35fb069e6 (diff) | |
Prefer single-quotes when you don't need interpolation.
So "foo" is less good than 'foo'.
Diffstat (limited to 'bin/custodian-dequeue')
| -rwxr-xr-x | bin/custodian-dequeue | 26 | 
1 files changed, 13 insertions, 13 deletions
| diff --git a/bin/custodian-dequeue b/bin/custodian-dequeue index 48dea57..7a4b629 100755 --- a/bin/custodian-dequeue +++ b/bin/custodian-dequeue @@ -69,23 +69,23 @@ if __FILE__ == $PROGRAM_NAME then    begin      opts = GetoptLong.new( -                          [ "--help",    "-h", GetoptLong::NO_ARGUMENT ], -                          [ "--manual",  "-m", GetoptLong::NO_ARGUMENT ], -                          [ "--fail",    "-f", GetoptLong::NO_ARGUMENT  ], -                          [ "--single",  "-s", GetoptLong::NO_ARGUMENT ], -                          [ "--verbose", "-v", GetoptLong::NO_ARGUMENT ] +                          [ '--help',    '-h', GetoptLong::NO_ARGUMENT ], +                          [ '--manual',  '-m', GetoptLong::NO_ARGUMENT ], +                          [ '--fail',    '-f', GetoptLong::NO_ARGUMENT  ], +                          [ '--single',  '-s', GetoptLong::NO_ARGUMENT ], +                          [ '--verbose', '-v', GetoptLong::NO_ARGUMENT ]                            )      opts.each do |opt, arg|        case opt -      when "--verbose" then -          ENV["VERBOSE"] = "1" -      when "--single" then -          ENV["SINGLE"] = "1" -      when "--fail" then -          ENV["FAIL"] = "1" -      when "--help" then +      when '--verbose' then +          ENV['VERBOSE'] = '1' +      when '--single' then +          ENV['SINGLE'] = '1' +      when '--fail' then +          ENV['FAIL'] = '1' +      when '--help' then            $help = true -      when "--manual" then +      when '--manual' then            $manual = true        end      end | 
