Sha256: 5d933766320466f1b0d89813ee900d83a38a32186d0efdc3ccfda39c23779f0a
Contents?: true
Size: 536 Bytes
Versions: 9
Compression:
Stored size: 536 Bytes
Contents
#!/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 <path_to_schema> [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)
Version data entries
9 entries across 9 versions & 1 rubygems