Sha256: e1b66a818386d55bb1731c223d3ef40ac673a6905dccfcd952ba645ff940075b
Contents?: true
Size: 382 Bytes
Versions: 16
Compression:
Stored size: 382 Bytes
Contents
#!/usr/bin/env ruby $: << File.expand_path('lib') require 'cl' class Add < Cl::Cmd opt '--active BOOL', type: :boolean opt '--retries INT', type: :integer opt '--sleep FLOAT', type: :float def run p active.class, retries.class, sleep.class end end Cl.new('owners').run(%w(add --active yes --retries 1 --sleep 0.1)) # Output: # # TrueClass # Integer # Float
Version data entries
16 entries across 16 versions & 1 rubygems