Sha256: 63fea63361666cb41aae494b4c6dd8a48afae4f7126840b7c7917bdd8886b65f

Contents?: true

Size: 314 Bytes

Versions: 15

Compression:

Stored size: 314 Bytes

Contents

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

<%= run sq(<<-'rb')
    require 'cl'

    class Add < Cl::Cmd
      arg :owners, type: :array, sep: ','

      def run
        p owners: owners
      end
    end
  rb
-%>

<%= run "Cl.new('owners').run(%w(add one,two))" %>

<%= out '{:owners=>["one", "two"]}' %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
cl-1.2.2 examples/_src/readme/arg_array.erb.rb
cl-1.2.1 examples/_src/readme/arg_array.erb.rb
cl-1.2.0 examples/_src/readme/arg_array.erb.rb
cl-1.1.5 examples/_src/readme/arg_array.erb.rb
cl-1.1.4 examples/_src/readme/arg_array.erb.rb
cl-1.1.3 examples/_src/readme/arg_array.erb.rb
cl-1.1.2 examples/_src/readme/arg_array.erb.rb
cl-1.1.1 examples/_src/readme/arg_array.erb.rb
cl-1.1.0 examples/_src/readme/arg_array.erb.rb
cl-1.0.5 examples/_src/readme/arg_array.erb.rb
cl-1.0.4 examples/_src/readme/arg_array.erb.rb
cl-1.0.3 examples/_src/readme/arg_array.erb.rb
cl-1.0.2 examples/_src/readme/arg_array.erb.rb
cl-1.0.1 examples/_src/readme/arg_array.erb.rb
cl-1.0.0 examples/src/readme/arg_array.erb.rb