Class | ParseError |
In: |
lib/optparse.rb
|
Parent: | RuntimeError |
Base class of exceptions from OptionParser.
Reason | = | 'parse error'.freeze | Reason which caused the error. |
args | [R] | |
reason | [W] |
# File lib/optparse.rb, line 1594 1594: def initialize(*args) 1595: @args = args 1596: @reason = nil 1597: end
# File lib/optparse.rb, line 1626 1626: def inspect 1627: "#<#{self.class.to_s}: #{args.join(' ')}>" 1628: end
Pushes back erred argument(s) to argv.
# File lib/optparse.rb, line 1605 1605: def recover(argv) 1606: argv[0, 0] = @args 1607: argv 1608: end