Sha256: aed5ab469931d6e7cb45549413119847d99c0f2a90d6a734d44cbcf601bb507d

Contents?: true

Size: 224 Bytes

Versions: 15

Compression:

Stored size: 224 Bytes

Contents

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

require 'cl'

class Add < Cl::Cmd
  opt '--to GROUP', downcase: true

  def run
    p to: to
  end
end

Cl.new('owners').run(%w(add --to ONE))

# Output:
#
#   {:to=>"one"}

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
cl-1.2.2 examples/readme/downcase
cl-1.2.1 examples/readme/downcase
cl-1.2.0 examples/readme/downcase
cl-1.1.5 examples/readme/downcase
cl-1.1.4 examples/readme/downcase
cl-1.1.3 examples/readme/downcase
cl-1.1.2 examples/readme/downcase
cl-1.1.1 examples/readme/downcase
cl-1.1.0 examples/readme/downcase
cl-1.0.5 examples/readme/downcase
cl-1.0.4 examples/readme/downcase
cl-1.0.3 examples/readme/downcase
cl-1.0.2 examples/readme/downcase
cl-1.0.1 examples/readme/downcase
cl-1.0.0 examples/readme/downcase