Sha256: 9db58455168722cdd49d65950d39ee6ec98d5759f0bfa5a4b59a368e8eb61c6b

Contents?: true

Size: 412 Bytes

Versions: 3

Compression:

Stored size: 412 Bytes

Contents

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

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

    class Add < Cl::Cmd
      register :add

      opt '--target GROUP', deprecated: 'Deprecated.'

      def run
        p target: target, deprecations: deprecations
      end
    end
  rb
-%>

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

<%= out '{:target=>"one", :deprecations=>{:target=>"Deprecated."}}' %>

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
travis-cl-1.2.4 examples/_src/readme/deprecated.erb.rb
cl-1.2.4 examples/_src/readme/deprecated.erb.rb
cl-1.2.3 examples/_src/readme/deprecated.erb.rb