Class | Thor::Command |
In: |
lib/thor/command.rb
|
Parent: | Struct.new(:name, :description, :long_description, :usage, :options) |
FILE_REGEXP | = | /^#{Regexp.escape(File.dirname(__FILE__))}/ |
Returns the formatted usage by injecting given required arguments and required options into the given usage.
By default, a command invokes a method in the thor class. You can change this implementation to create custom commands.