Class: LicenseFinder::CLI::Base

Inherits:
Thor
  • Object
show all
Defined in:
lib/license_finder/cli.rb

Direct Known Subclasses

Main, Subcommand

Class Method Summary collapse

Class Method Details

.subcommand(namespace, klass, namespace_description) ⇒ Object



6
7
8
9
10
# File 'lib/license_finder/cli.rb', line 6

def self.subcommand(namespace, klass, namespace_description)
  description = "#{namespace} [#{(klass.tasks.keys - ["help"]).join("|")}]"
  desc description, "#{namespace_description} - see `license_finder #{namespace} help` for more information"
  super namespace, klass
end