Class Thor::Command
In: lib/thor/command.rb
Parent: Struct.new(:name, :description, :long_description, :usage, :options, :ancestor_name)

Methods

Constants

FILE_REGEXP = /^#{Regexp.escape(File.dirname(__FILE__))}/

Public Class methods

Public Instance methods

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.

Protected Instance methods

[Validate]