inc(arg, default = nil)
Returns an incremented value of default according to arg.
# File lib/optparse.rb, line 890 def self.inc(arg, default = nil) case arg when Integer arg.nonzero? when nil default.to_i + 1 end end