class MCollective::Application::Help - mcollective version 2.12.5

# class MCollective::Application::Help

### Public Instance Methods

main() click to toggle source

       # File lib/mcollective/application/help.rb
    10 def main
    11   if configuration.include?(:application)
    12     puts Applications[configuration[:application]].help
    13   else
    14     puts "The Marionette Collective version #{MCollective.version}"
    15     puts
    16
    17     Applications.list.sort.each do |app|
    18       begin
    19         puts "  %-15s %s" % [app, Applications[app].application_description]
    20       rescue
    21       end
    22     end
    23
    24     puts
    25   end
    26 end

post_option_parser(configuration) click to toggle source

      # File lib/mcollective/application/help.rb
    6 def post_option_parser(configuration)
    7   configuration[:application] = ARGV.shift if ARGV.size > 0
    8 end