Sha256: ccbf9c032ea7f65cd2f6fca7760b623ef9981269e101c6db6aee38f345806dff

Contents?: true

Size: 417 Bytes

Versions: 5

Compression:

Stored size: 417 Bytes

Contents

#!/usr/bin/env ruby

require "optparse"
require_relative '../lib/pliny/commands/creator'

OptionParser.new do |options|
  opts = {}
  options.banner = "Usage: pliny-new app-name [options]"

  begin
    options.parse!
    if ARGV.empty?
      puts options.banner
    else
      Pliny::Commands::Creator.run(ARGV.dup, opts)
    end
  rescue OptionParser::InvalidOption => e
    puts e
    puts options.banner
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pliny-0.13.0 bin/pliny-new
pliny-0.12.0 bin/pliny-new
pliny-0.11.2 bin/pliny-new
pliny-0.11.1 bin/pliny-new
pliny-0.11.0 bin/pliny-new