Sha256: 43e7815584c9b8730c1b0d1af40ecfcb03e455afc187b088b005db0a6f128830
Contents?: true
Size: 302 Bytes
Versions: 74
Compression:
Stored size: 302 Bytes
Contents
#! /usr/bin/env ruby # An example of multi-valued options require "clamp" Clamp do option ["-f", "--flavour"], "FLAVOUR", "flavour", :multivalued => true, :default => ['chocolate'], :attribute_name => :flavours def execute puts "one #{flavours.join(' and ')} ice-cream" end end
Version data entries
74 entries across 70 versions & 18 rubygems