Method: Methadone::ExitNow#help_now!

Defined in:
lib/methadone/exit_now.rb

#help_now!(message) ⇒ Object

Exit the program as if the user made an error invoking your app, providing them the message as well as printing the help. This is useful if you have complex UI validation that can’t be done by OptionParser.

Raises:

  • (OptionParser::ParseError)


36
37
38
# File 'lib/methadone/exit_now.rb', line 36

def help_now!(message)
  raise OptionParser::ParseError.new(message)
end