Method: GLI::App#help_now!
- Defined in:
- lib/gli/app.rb
#help_now!(message = nil) ⇒ Object
Exit now, showing the user help for the command they executed. Use #exit_now! to just show the error message
- message
-
message to indicate how the user has messed up the CLI invocation or nil to just simply show help
230 231 232 233 234 235 236 |
# File 'lib/gli/app.rb', line 230 def help_now!(=nil) exception = OptionParser::ParseError.new() class << exception def exit_code; 64; end end raise exception end |