Sha256: f44c40feca8ac60c80e3c7ba406b4fafb7ac53d2ad3e2af5a9b9936781f9b9c7

Contents?: true

Size: 450 Bytes

Versions: 3

Compression:

Stored size: 450 Bytes

Contents

#!/usr/bin/env ruby
$: << File.expand_path('lib')

<%= run sq(<<-'rb')
    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
  rb
-%>

<%= run "Cl.new('owners').run(%w(cmd 1 2.1 yes))" %>

<%= out "[#{RUBY_VERSION < '2.4' ? 'Fixnum' : 'Integer'}, Float, TrueClass]" %>

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
travis-cl-1.2.4 examples/_src/readme/arg_type.erb.rb
cl-1.2.4 examples/_src/readme/arg_type.erb.rb
cl-1.2.3 examples/_src/readme/arg_type.erb.rb