#!/usr/bin/env ruby $:.unshift File.absolute_path('vendor') $:.unshift File.absolute_path('vendor/soap4r') $:.unshift File.absolute_path('lib') require 'thor' require 'thor/actions' require 'soybean' class Soybean::CLI < Thor include Thor::Actions desc "classes file_path.xsd", "Generate Ruby classes from XSD" method_options :quiet => :boolean, :force => :boolean def classes(location, destination = 'types') action Soybean::Actions::GenerateClasses.new(self, location, destination, options) end end Soybean::CLI.start