about summary refs log tree commit homepage
path: root/lib/mongrel/command.rb
diff options
context:
space:
mode:
authorzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-02-26 21:39:40 +0000
committerzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-02-26 21:39:40 +0000
commite8d6936a049ae876ad161988a6eeb8a001bcb459 (patch)
treea4b6ab7ea7bb3d89424438efcc63ff15a6c32af2 /lib/mongrel/command.rb
parentd8da35551287f33acf93f48fb9ab6bdb14e11d65 (diff)
downloadunicorn-e8d6936a049ae876ad161988a6eeb8a001bcb459.tar.gz
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@61 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'lib/mongrel/command.rb')
-rw-r--r--lib/mongrel/command.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mongrel/command.rb b/lib/mongrel/command.rb
index 410f84f..3625438 100644
--- a/lib/mongrel/command.rb
+++ b/lib/mongrel/command.rb
@@ -44,6 +44,7 @@ module Mongrel
         @valid = true
         # this is retarded, but it has to be done this way because -h and -v exit
         @done_validating = false
+        @original_args = argv.dup
 
         configure
 
@@ -154,9 +155,8 @@ module Mongrel
       # Runs the args against the first argument as the command name.
       # If it has any errors it returns a false, otherwise it return true.
       def run(args)
-        # find the command and change the program's name to reflect it
+        # find the command
         cmd_name = args.shift
-        $0 = "#{cmd_name}"
         
         if !cmd_name or cmd_name == "?" or cmd_name == "help"
           print_command_list