#! /usr/bin/env ruby
# frozen_string_literal: true

# An example of subcommands (including a default subcommand)

require "clamp"
require "clamp/version"

Clamp do

  option ["--version", "-v"], :flag, "Show version" do
    puts "Powered by Clamp-#{Clamp::VERSION}"
    exit(0)
  end

  self.default_subcommand = "flip"

  subcommand "flip", "flip it" do
    def execute
      puts "FLIPPED"
    end
  end

  subcommand "flop", "flop it" do
    def execute
      puts "FLOPPED"
    end
  end

end
