Sha256: ffa88f55cd5c5ef3a168c93edf6d3d5eb39e5872e485bcfd7c170b0bd20bea81

Contents?: true

Size: 564 Bytes

Versions: 10

Compression:

Stored size: 564 Bytes

Contents

#!/usr/bin/env ruby
require "optparse"
require "next_rails/version"

options = {}
option_parser = OptionParser.new do |opts|
  opts.banner = <<-MESSAGE
    Usage: #{__FILE__.to_s} [options]

    Examples:
      bin/next_rails --version info # Show the version of the gem installed
  MESSAGE

  opts.on("--version", "show version of the gem") do
    options[:version] = true
  end

  opts.on_tail("-h", "--help", "Prints this help") do
    puts opts
    exit
  end
end

option_parser.parse!

if options.fetch(:version, false)
  puts NextRails::VERSION
  exit 2
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
next_rails-1.4.2 exe/next_rails
next_rails-1.4.1 exe/next_rails
next_rails-1.4.0 exe/next_rails
next_rails-1.3.0 exe/next_rails
next_rails-1.2.4 exe/next_rails
next_rails-1.2.3 exe/next_rails
next_rails-1.2.2 exe/next_rails
next_rails-1.2.1 exe/next_rails
next_rails-1.2.0 exe/next_rails
next_rails-1.1.0 exe/next_rails