Sha256: 66c113945e7a0fa948a1f92053ec4e2a93a5352f71d0f7a4f62097220db87426

Contents?: true

Size: 440 Bytes

Versions: 1

Compression:

Stored size: 440 Bytes

Contents

#!/usr/bin/env ruby

require 'optparse'
require 'typogen'

options = {}

opt_parse = OptionParser.new do |opt|
  opt.banner = "Usage: typogen [options] word"
  opt.on("-v", "--version", "display the typogen version.") { options[:version] = true }
  opt.parse!(ARGV)
end

TypoGen::OPTIONS.merge!(options)

case
  when options[:version]
    puts "TypoGen version: #{TypoGen::VERSION}"
  else
    TypoGen::CLI.run(ARGV.first, options: {})
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
typogen-0.2.1 exe/typogen