examples/readme/deprecated_alias
#!/usr/bin/env ruby
$: << File.expand_path('lib')
require 'cl'
class Add < Cl::Cmd
register :add
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}}