Skip to content

Commit

Permalink
- Removed conditional ARGV
Browse files Browse the repository at this point in the history
- Removed some todo items
  • Loading branch information
tj committed Nov 6, 2008
1 parent bf550a9 commit 2f4046c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions README.txt
Expand Up @@ -44,17 +44,6 @@

== TODO:

unless defined?(ActionController)
begin
$:.unshift "#{File.dirname(__FILE__)}/../../actionpack/lib"
require 'action_controller'
rescue LoadError
require 'rubygems'
gem 'actionpack', '>= 1.12.5'
end
end

* utilize singleton mixin
* utilize less command
* more / better documentation
* help generator options (such as large option description etc)
Expand Down
2 changes: 1 addition & 1 deletion lib/commander/manager.rb
Expand Up @@ -36,7 +36,7 @@ def self.kill_instance!

def initialize(options)
@info, @command_options = options, {}
@user_args = @info[:argv] || ARGV.dup
@user_args = ARGV.dup
@info[:help_generator] ||= Commander::HelpGenerators::Default
init_version
at_exit { run }
Expand Down

0 comments on commit 2f4046c

Please sign in to comment.