Sha256: b4175e323dc9b1cb4060df4b8f2fe1d7976b280ec7e3732f556c8af8b18d6764
Contents?: true
Size: 630 Bytes
Versions: 2
Compression:
Stored size: 630 Bytes
Contents
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'command_lion' require 'pry' CommandLion::App.run do name "Rainbow Hello" version "1.0.0" description "A typical, contrived example application." command :hello do description "A simple command to say hello!" type :string flags do short "-h" long "--hello" end default "world" action do puts "Hello #{argument}!" end option :rainbow do description "STDOUT is much prettier with rainbows!" flag "--rainbow" action do require 'lolize/auto' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
command_lion-2.0.1 | examples/readme.rb |
command_lion-2.0.0 | examples/readme.rb |