Method: Thor::Command#initialize
- Defined in:
- lib/thor/command.rb
#initialize(name:, description: nil, long_description: nil, usage: nil, examples: [], arguments: [], options: nil) ⇒ Command
Returns a new instance of Command.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/thor/command.rb', line 18 def initialize name:, description: nil, long_description: nil, usage: nil, examples: [], arguments: [], options: nil super \ name.to_s, description, long_description, usage, examples, arguments, || {} end |