Sha256: bda5a756310002eef43e6e4b6021efd6c395a112bb9206737e424d809a757aaa
Contents?: true
Size: 315 Bytes
Versions: 15
Compression:
Stored size: 315 Bytes
Contents
#!/usr/bin/env ruby $: << File.expand_path('lib') require 'cl' class Cmd < Cl::Cmd arg :one, type: :integer arg :two, type: :float arg :three, type: :boolean def run p [one.class, two.class, three.class] end end Cl.new('owners').run(%w(cmd 1 2.1 yes)) # Output: # # [Integer, Float, TrueClass]
Version data entries
15 entries across 15 versions & 1 rubygems