module Rodish::Plugins::Usages::ProcessorMethods

  1. lib/rodish/plugins/usages.rb

Methods

Public Instance

  1. usages

Public Instance methods

usages()

Return a hash of usage strings for the root command and all subcommands, recursively. The hash has string keys for the command name, and string values for the help for the command.

[show source]
   # File lib/rodish/plugins/usages.rb
15 def usages
16   usages = {}
17 
18   command.each_subcommand do |names, command|
19     usages[names.join(" ")] = command.help
20   end
21 
22   usages
23 end