Sha256: a99b58cfa336f0372fd3134ad982f8dde77f2ba8d304faea0db5cb95d0ed6dce
Contents?: true
Size: 332 Bytes
Versions: 3
Compression:
Stored size: 332 Bytes
Contents
#!/usr/bin/env ruby $: << File.expand_path('lib') require 'cl' class Cmd < Cl::Cmd register :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
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
travis-cl-1.2.4 | examples/readme/arg_type |
cl-1.2.4 | examples/readme/arg_type |
cl-1.2.3 | examples/readme/arg_type |