<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,5 +5,5 @@ require &quot;rubygems&quot;
 require File.expand_path(File.dirname(__FILE__) + &quot;/../lib/testjour&quot;)
 require &quot;testjour/cli&quot;
 
-result = Testjour::CLI.execute(ARGV.dup)
+result = Testjour::CLI.execute(ARGV)
 Kernel.exit(result)</diff>
      <filename>bin/testjour</filename>
    </modified>
    <modified>
      <diff>@@ -2,40 +2,39 @@ require &quot;testjour/commands&quot;
 
 module Testjour
   class CLI
-    
+
     def self.execute(*args)
       new(*args).execute
     end
-    
+
     def initialize(args, out_stream = STDOUT, err_stream = STDERR)
       @args = args
       @out_stream = out_stream
       @err_stream = err_stream
     end
-    
-    def command_class(args)
-      if args.first == &quot;--help&quot;
-        @args_for_command = @args[1..-1]
+
+    def command_class
+      case @args.first
+      when &quot;--help&quot;
+        @args.shift
         Commands::Help
-      elsif args.first == &quot;--version&quot;
-        @args_for_command = @args[1..-1]
+      when &quot;--version&quot;
+        @args.shift
         Commands::Version
-      elsif args.first == &quot;run:slave&quot;
-        @args_for_command = @args[1..-1]
+      when &quot;run:slave&quot;
+        @args.shift
         Commands::RunSlave
-      elsif args.first == &quot;run:remote&quot;
-        @args_for_command = @args[1..-1]
+      when &quot;run:remote&quot;
+        @args.shift
         Commands::RunRemote
       else
-        @args_for_command = @args.dup
         Commands::Run
       end
     end
-    
+
     def execute
-      klass = command_class(@args)
-      klass.new(@args_for_command, @out_stream, @err_stream).execute || 0
+      command_class.new(@args, @out_stream, @err_stream).execute || 0
     end
-    
+
   end
 end
\ No newline at end of file</diff>
      <filename>lib/testjour/cli.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ff40053c5d10e5fd7fd0d1fb6b6274dd38072148</id>
    </parent>
  </parents>
  <author>
    <name>Bryan Helmkamp</name>
    <email>bryan@brynary.com</email>
  </author>
  <url>http://github.com/brynary/testjour/commit/3288881492e23b09594c3aa7b54cd1bd563e8c37</url>
  <id>3288881492e23b09594c3aa7b54cd1bd563e8c37</id>
  <committed-date>2009-10-20T13:14:54-07:00</committed-date>
  <authored-date>2009-10-20T13:14:54-07:00</authored-date>
  <message>Always remove Testjour options from ARGV</message>
  <tree>55377a62ff43001cbf3535f687aed0a6326fd97a</tree>
  <committer>
    <name>Bryan Helmkamp</name>
    <email>bryan@brynary.com</email>
  </committer>
</commit>
