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