class GLI::CommandException
Attributes
command_in_context[R]
The command for which the argument was unknown
Public Class Methods
new(message,command_in_context,exit_code=nil)
click to toggle source
message
-
the error message to show the user
command
-
the command we were using to parse command-specific options
Calls superclass method
# File lib/gli/exceptions.rb, line 51 def initialize(message,command_in_context,exit_code=nil) super(message) @command_in_context = command_in_context @exit_code = exit_code end
Public Instance Methods
exit_code()
click to toggle source
Calls superclass method
GLI::BadCommandLine#exit_code
# File lib/gli/exceptions.rb, line 57 def exit_code @exit_code || super end