Sha256: 39e559b44f57f9732b73318a6d1e254224b5857c50e57c329d5fc4d60f9e41c1

Contents?: true

Size: 308 Bytes

Versions: 15

Compression:

Stored size: 308 Bytes

Contents

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

require 'cl'

class Add < Cl::Cmd
  opt '--to GROUP', alias: :target, deprecated: :target

  def run
    p to: to, deprecations: deprecations
  end
end

Cl.new('owners').run(%w(add --target one))

# Output:
#
#   {:to=>"one", :deprecations=>{:target=>:to}}

Version data entries

15 entries across 15 versions & 1 rubygems

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