Sha256: ff348e36ba0ef4f9925b4126d14c6694b25d5d2f1e182a29ddd88dd75c66f4a3
Contents?: true
Size: 608 Bytes
Versions: 8
Compression:
Stored size: 608 Bytes
Contents
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'command_lion' require 'pry' CommandLion::App.run do command :example do flag "-e" type :string default "something" description "An example command." action do options[:example].argument.times do puts argument end end option :example do flag "--count" type :integer default 1 description "How many times to print to the screen." action do abort "Argument must be an integer greater than or equal to 1" unless argument >= 1 end end end end
Version data entries
8 entries across 8 versions & 1 rubygems