Why not just use times?

```ruby
2.0.0-p353 :007 > require 'ostruct'
 => true 
2.0.0-p353 :008 > settings = OpenStruct.new
 => #<OpenStruct> 
2.0.0-p353 :009 > settings.times = 4
 => 4 
2.0.0-p353 :010 > settings.times.class
 => Fixnum 
2.0.0-p353 :011 > settings.times.times
 => #<Enumerator: 4:times> 
2.0.0-p353 :012 > settings.times.times {p 'helo'}
"helo"
"helo"
"helo"
"helo"
=> 4 
2.0.0-p353 :013 >
```

If you make the OptionParser change suggested at line 57, you won't even have to worry about converting to an integer.