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

Version Path
scaffold_parser-0.10.0 bin/scaffold_parser
scaffold_parser-0.9.1 bin/scaffold_parser
scaffold_parser-0.9.0 bin/scaffold_parser
scaffold_parser-0.8.0 bin/scaffold_parser
scaffold_parser-0.7.0 bin/scaffold_parser
scaffold_parser-0.6.0 bin/scaffold_parser
scaffold_parser-0.5.0 bin/scaffold_parser
scaffold_parser-0.4.0 bin/scaffold_parser
scaffold_parser-0.3.0 bin/scaffold_parser