class Bogo::Cli::Parser::OptionParser

Modified option parser to include subcommand information

Attributes

subcommands[RW]

Public Instance Methods

help() click to toggle source
Calls superclass method
# File lib/bogo-cli/parser.rb, line 86
def help
  v = super
  return v if Array(subcommands).empty?
  v += "\n" + "Available Commands:\n\n"
  Array(subcommands).each do |sc|
    v += summary_indent + sc.name.to_s + "\t" + sc.description.to_s + "\n"
  end
  v + "\n" + 'See `<command> --help` for more information on a specific command.'
end