method

new

new(args = [], options = {}, config = {})
public

Add shell to initialize config values.

Configuration

shell

An instance of the shell to be used.

Examples

class MyScript < Bundler::Thor
  argument :first, :type => :numeric
end

MyScript.new [1.0], { :foo => :bar }, :shell => Bundler::Thor::Shell::Basic.new