Sha256: 1095d079ce3bca6938817fb7eab0f63fd244655ca7a33f655d28be2b6481ff59

Contents?: true

Size: 237 Bytes

Versions: 4

Compression:

Stored size: 237 Bytes

Contents

#! /usr/bin/env ruby

# An example of nested subcommands

require "clamp"

Clamp do

  subcommand "foo", "Foo!" do

    subcommand ["bar", "bah", "baa"], "Baaaa!" do

      def execute
        puts "FUBAR"
      end

    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
clamp-1.2.1 examples/fubar
clamp-1.2.0 examples/fubar
clamp-1.2.0.beta1 examples/fubar
clamp-1.1.2 examples/fubar