#!/usr/bin/env ruby require 'scaffold_parser' require 'optparse' options = {} path = ARGV.shift abort 'Path to schema file as a first argument is required' unless path OptionParser.new do |opts| opts.banner = 'Usage: scaffold_parser [options]' opts.on('-nNAMESPACE', '--namespace=NAMESPACE', 'Output all classes in given namespace') do |v| options[:namespace] = v end opts.on('-v', '--verbose', 'Run verbosely') do |v| options[:verbose] = v end end.parse! ScaffoldParser.scaffold(path, options)