Class: Thor
- Inherits:
-
Object
- Object
- Thor
- Defined in:
- lib/rump.rb
Overview
Thor’s default stack trace on errors is ugly - make it pretty.
Direct Known Subclasses
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, == "thor").inspect}." exit 1 end |