Sha256: bdad9438e26b54dae959394a26136b46dc7443521f78e16318cec0ec405e4ae1
Contents?: true
Size: 432 Bytes
Versions: 3
Compression:
Stored size: 432 Bytes
Contents
#!/usr/bin/env ruby $: << File.expand_path('lib') class Add < Cl::Cmd register :add opt '--active BOOL', type: :boolean opt '--retries INT', type: :integer opt '--sleep FLOAT', type: :float def run p active: active.class, retries: retries.class, sleep: sleep.class end end Cl.new('owners').run(%w(add --active yes --retries 1 --sleep 0.1)) # Output: # # {:active=>TrueClass, :retries=>Integer, :sleep=>Float}
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
travis-cl-1.2.4 | examples/readme/type |
cl-1.2.4 | examples/readme/type |
cl-1.2.3 | examples/readme/type |