examples/speak in clamp-1.2.1 vs examples/speak in clamp-1.3.0

- old
+ new

@@ -1,6 +1,7 @@ #! /usr/bin/env ruby +# frozen_string_literal: true # A simple Clamp command, with options and parameters require "clamp" @@ -9,14 +10,14 @@ banner %( Say something. ) option "--loud", :flag, "say it loud" - option ["-n", "--iterations"], "N", "say it N times", :default => 1 do |s| + option ["-n", "--iterations"], "N", "say it N times", default: 1 do |s| Integer(s) end - parameter "WORDS ...", "the thing to say", :attribute_name => :words + parameter "WORDS ...", "the thing to say", attribute_name: :words def execute the_truth = words.join(" ") the_truth.upcase! if loud?