Sha256: fbe50e328f9a93c8491d708d90de244bb6e2b32724a2c72f3f5cd6a1561cec6b

Contents?: true

Size: 354 Bytes

Versions: 1

Compression:

Stored size: 354 Bytes

Contents

#!/usr/bin/env ruby
require_relative '../lib/optimist_xl'

opts = OptimistXL::options do
  synopsis "Overall synopsis of this program"
  version "cool-script v0.3 (code-name: apple-cake)"
  opt :juice, "use juice"
  opt :milk, "use milk"
  opt :litres, "quantity of liquid", :default => 2.0
  opt :brand, "brand name of the liquid", :type => :string
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
optimist_xl-3.1.1 examples/banners1.rb