Sha256: 5360f03944d77985a1860fa9c7579322c0438c87953ed1726e1b0287ca2df646

Contents?: true

Size: 275 Bytes

Versions: 16

Compression:

Stored size: 275 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, deprecated_opts
  end
end

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

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
cl-0.1.28 examples/readme/deprecated_alias
cl-0.1.27 examples/readme/deprecated_alias
cl-0.1.26 examples/readme/deprecated_alias
cl-0.1.25 examples/readme/deprecated_alias
cl-0.1.24 examples/readme/deprecated_alias
cl-0.1.23 examples/readme/deprecated_alias
cl-0.1.22 examples/readme/deprecated_alias
cl-0.1.21 examples/readme/deprecated_alias
cl-0.1.20 examples/readme/deprecated_alias
cl-0.1.19 examples/readme/deprecated_alias
cl-0.1.18 examples/readme/deprecated_alias
cl-0.1.17 examples/readme/deprecated_alias
cl-0.1.16 examples/readme/deprecated_alias
cl-0.1.15 examples/readme/deprecated_alias
cl-0.1.14 examples/readme/deprecated_alias
cl-0.1.13 examples/readme/deprecated_alias