![show/hide quicksearch [+]](../images/find.png)
Add shell to initialize config values.
| shell<Object> | An instance of the shell to be used. | 
class MyScript < Thor
  argument :first, :type => :numeric
end
MyScript.new [1.0], { :foo => :bar }, :shell => Thor::Shell::Basic.new
            
            
            # File lib/thor/shell.rb, line 45 def initialize(args=[], options={}, config={}) super self.shell = config[:shell] self.shell.base ||= self if self.shell.respond_to?(:base) end
Holds the shell for the given Thor instance. If no shell is given, it gets a default shell from Thor::Base.shell.
# File lib/thor/shell.rb, line 53 def shell @shell ||= Thor::Base.shell.new end
Generated with the Darkfish Rdoc Generator 2.