lib/xcode/install/install.rb in xcode-install-0.3.2 vs lib/xcode/install/install.rb in xcode-install-0.3.3

- old
+ new

@@ -8,17 +8,19 @@ CLAide::Argument.new('VERSION', :true) ] def self.options [['--no-switch', 'Don’t switch to this version after installation'], + ['--no-install', 'Only download DMG, but do not install it.'], ['--no-clean', 'Don’t delete DMG after installation.']].concat(super) end def initialize(argv) @installer = Installer.new @version = argv.shift_argument @should_clean = argv.flag?('clean', true) + @should_install = argv.flag?('install', true) @should_switch = argv.flag?('switch', true) super end def validate! @@ -27,10 +29,10 @@ fail Informative, "Version #{@version} doesn't exist." unless @installer.exist?(@version) end def run return if @version.nil? - @installer.install_version(@version, @should_switch, @should_clean) + @installer.install_version(@version, @should_switch, @should_clean, @should_install) end end end end