5 Version = MCollective.version
6 known_applications = MCollective::Applications.list
8 # links from mc-ping to mc will result in ping being run
9 if $0 =~ /mc\-([a-zA-Z\-_\.]+)$/
16 if known_applications.include?(app_name)
17 # make sure the various options classes shows the right help etc
20 MCollective::Applications.run(app_name)
22 puts "The Marionette Collective version #{MCollective.version}"
24 puts "usage: #{$0} command <options>"
26 puts "Known commands:"
29 known_applications.sort.uniq.in_groups_of(3) do |apps|
30 puts " %-20s %-20s %-20s" % [apps[0], apps[1], apps[2]]
34 puts "Type '#{$0} help' for a detailed list of commands and '#{$0} help command'"
35 puts "to get detailed help for a command"