diff options
author | zedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9> | 2006-03-05 19:28:52 +0000 |
---|---|---|
committer | zedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9> | 2006-03-05 19:28:52 +0000 |
commit | a4a2f19a0c94e72641d3b43c66d7817d2b9c30a9 (patch) | |
tree | 6fd9f080cb8ad9281db629163441bd331739ffa8 /lib/mongrel/command.rb | |
parent | 89719a8b28f728c0ce4891cc5d6a70e63dd0d700 (diff) | |
download | unicorn-a4a2f19a0c94e72641d3b43c66d7817d2b9c30a9.tar.gz |
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@82 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'lib/mongrel/command.rb')
-rw-r--r-- | lib/mongrel/command.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mongrel/command.rb b/lib/mongrel/command.rb index db54e1d..f8737f0 100644 --- a/lib/mongrel/command.rb +++ b/lib/mongrel/command.rb @@ -32,7 +32,7 @@ module Mongrel # Called by the subclass to setup the command and parse the argv arguments. # The call is destructive on argv since it uses the OptionParser#parse! function. def initialize(options={}) - argv = options[:argv] + argv = options[:argv] || [] @opt = OptionParser.new @valid = true # this is retarded, but it has to be done this way because -h and -v exit @@ -55,7 +55,7 @@ module Mongrel end end - @opt.parse! options[:argv] + @opt.parse! argv end # Returns true/false depending on whether the command is configured properly. |