Sha256: f78a9cec03502c50e1300877245ef36ef4aa1068341bb32b54097e5827e317f2
Contents?: true
Size: 674 Bytes
Versions: 4
Compression:
Stored size: 674 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." flag "--ignore" type :string end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
command_lion-1.0.3 | examples/hello_multi.rb |
command_lion-1.0.2 | examples/hello_multi.rb |
command_lion-1.0.1 | examples/hello_multi.rb |
command_lion-1.0.0 | examples/hello_multi.rb |