Sha256: 3869139ae468ce0f35483d11c2045e19b804608ed5bb869b1262167f1d713f13

Contents?: true

Size: 273 Bytes

Versions: 2

Compression:

Stored size: 273 Bytes

Contents

#! /usr/bin/env ruby

require "clamp"

class Icecream < Clamp::Command

  option "--flavour", "FLAVOUR", "ice-cream flavour"

  def execute
    signal_usage_error "what flavour?" unless flavour
    puts "You chose #{flavour}.  Excellent choice!"
  end
  
end

Icecream.run

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
clamp-0.0.9 examples/icecream
clamp-0.0.7 examples/icecream