examples/scoop in clamp-1.2.1 vs examples/scoop in clamp-1.3.0
- old
+ new
@@ -1,15 +1,16 @@
#! /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
+ multivalued: true, default: ["chocolate"],
+ attribute_name: :flavours
def execute
puts "one #{flavours.join(' and ')} ice-cream"
end