Sha256: 6eead575485fc896f6c1dd4b35a71589ee1e0517d998aa1bfa253b1c8093ad18

Contents?: true

Size: 363 Bytes

Versions: 2

Compression:

Stored size: 363 Bytes

Contents

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'command_lion'
require 'pry'

CommandLion::App.run do
  name "Hello World"

  command :hello_world do
    flag "--hello-world"
    action do
      puts "Hello World!"
    end
    option :example do
      flag "--example"
      action do
        puts "Example worked!"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
command_lion-2.0.1 examples/error.rb
command_lion-2.0.0 examples/error.rb