bin/snapshot in snapshot-1.9.0 vs bin/snapshot in snapshot-1.10.0
- old
+ new
@@ -63,11 +63,11 @@
c.syntax = 'snapshot reset_simulators'
c.description = "This will remove all your existing simulators and re-create new ones"
c.option '-i', '--ios String', String, 'The comma separated list of iOS Versions you want to use'
c.action do |args, options|
- versions = [Snapshot::LatestIosVersion.version]
- versions = options.ios.split(',') if options.ios
+ options.default ios_version: Snapshot::LatestIosVersion.version
+ versions = options.ios_version.split(',') if options.ios_version
require 'snapshot/reset_simulators'
Snapshot::ResetSimulators.clear_everything!(versions)
end
end