In Files
- optparse.rb
Parent
RuntimeError
Class/Module Index
- Object
- OptParse
- OptionParser
- OptionParser::AC
- OptionParser::Acceptables
- OptionParser::AmbiguousArgument
- OptionParser::AmbiguousOption
- OptionParser::Arguable
- OptionParser::CompletingHash
- OptionParser::Completion
- OptionParser::InvalidArgument
- OptionParser::InvalidOption
- OptionParser::List
- OptionParser::MissingArgument
- OptionParser::NeedlessArgument
- OptionParser::OptionMap
- OptionParser::ParseError
- OptionParser::Regexp
- OptionParser::Switch
- OptionParser::Switch::NoArgument
- OptionParser::Switch::OptionalArgument
- OptionParser::Switch::PlacedArgument
- OptionParser::Switch::RequiredArgument
OptionParser::ParseError
Base class of exceptions from OptionParser.
Public Class Methods
Public Instance Methods
message()
Default stringizing method to emit standard error message.
# File optparse.rb, line 1995 def message reason + ': ' + args.join(' ') end
Also aliased as: to_s
reason()
Returns error reason. Override this for I18N.
# File optparse.rb, line 1984 def reason @reason || self.class::Reason end
recover(argv)
Pushes back erred argument(s) to argv
.
# File optparse.rb, line 1956 def recover(argv) argv[0, 0] = @args argv end
set_backtrace(array)
# File optparse.rb, line 1968 def set_backtrace(array) super(self.class.filter_backtrace(array)) end