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