Module: LicenseFinder::CLI::Rootcommand
- Included in:
- Main
- Defined in:
- lib/license_finder/cli/patched_thor.rb
Instance Method Summary collapse
-
#subcommand(namespace, klass, namespace_description) ⇒ Object
Helper to auto-generate the documentation for a group of commands.
Instance Method Details
#subcommand(namespace, klass, namespace_description) ⇒ Object
Helper to auto-generate the documentation for a group of commands
7 8 9 10 11 |
# File 'lib/license_finder/cli/patched_thor.rb', line 7 def 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 |