Class: Thor

Inherits:
Object
  • Object
show all
Defined in:
lib/rump.rb

Overview

Thor’s default stack trace on errors is ugly - make it pretty.

Direct Known Subclasses

Rump

Class Method Summary collapse

Class Method Details

.handle_argument_error(task, error) ⇒ Object



37
38
39
40
# File 'lib/rump.rb', line 37

def handle_argument_error(task, error)
  puts "#{task.name.inspect} was called incorrectly. Call as #{task.formatted_usage(self, banner_base == "thor").inspect}."
  exit 1
end