def generalOptions
subtext = "Aeolus Image Commands:"
subtext += "\n list : Lists Aeolus Image Resources"
subtext += "\n build : Builds a new Image"
subtext += "\n push : Pushes an Image to a particular Provider Account"
subtext += "\n import : Imports an existing image"
subtext += "\n delete : Delete an Aeolus Image Resource"
subtext += "\n status : Check the status of a push or build"
subtext += "\nSee `aeolus-image <command> -h` for more information on each command"
general = OptionParser.new do |opts|
opts.banner = "Usage: aeolus-image [#{COMMANDS.join('|')}] [command options]"
opts.on( '-h', '--help', 'Get usage information for this tool') do
puts opts
exit(0)
end
opts.separator(subtext)
end
general
end