Sha256: 8836aff83f3c280272bb806d3ec9d0d273314b76808cbfe06e4a2d9bdea20edc
Contents?: true
Size: 721 Bytes
Versions: 4
Compression:
Stored size: 721 Bytes
Contents
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'command_lion' require 'pry' CommandLion::App.run do name "Hello People!" version "1.0.0" description "Your typical, contrived application example." command :hello do description "A simple option to say hello to multiple people!" type :strings flag "hello" default ["bob", "alice"] action do arguments.each do |argument| next if argument == options[:ignore].argument puts "Hello #{argument}!" end end option :ignore do description "Optionally ignore one person." flags do short "-i" long "--ignore" end type :string end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
command_lion-2.0.1 | examples/hello_multi.rb |
command_lion-2.0.0 | examples/hello_multi.rb |
command_lion-1.0.4 | examples/hello_multi.rb |
command_lion-1.0.3geff | examples/hello_multi.rb |