class Cl::UnknownOption
Constants
- VALUE
Attributes
cmd[R]
opt[R]
Public Class Methods
new(cmd, str)
click to toggle source
Calls superclass method
Cl::Error::new
# File lib/cl/errors.rb, line 48 def initialize(cmd, str) @cmd = cmd @opt = str.sub('invalid option: ', '').sub(VALUE, '') super(:unknown_option, opt) end
Public Instance Methods
suggestions()
click to toggle source
# File lib/cl/errors.rb, line 54 def suggestions cmd.suggestions(opt) end