Sha256: 48de25d42eb93189bde1c18faee24bddb857554045789e32766b31cb23439603
Contents?: true
Size: 333 Bytes
Versions: 3
Compression:
Stored size: 333 Bytes
Contents
#! /usr/bin/env ruby # frozen_string_literal: true # 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
clamp-1.3.2 | examples/scoop |
clamp-1.3.1 | examples/scoop |
clamp-1.3.0 | examples/scoop |