Sha256: d857c6dd5bedc56b8f07632a68bb1ed8a3c94bf31826e38642a2dd82a39b517a

Contents?: true

Size: 391 Bytes

Versions: 15

Compression:

Stored size: 391 Bytes

Contents

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

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

    class Add < Cl::Cmd
      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

15 entries across 15 versions & 1 rubygems

Version Path
cl-1.2.2 examples/_src/readme/deprecated.erb.rb
cl-1.2.1 examples/_src/readme/deprecated.erb.rb
cl-1.2.0 examples/_src/readme/deprecated.erb.rb
cl-1.1.5 examples/_src/readme/deprecated.erb.rb
cl-1.1.4 examples/_src/readme/deprecated.erb.rb
cl-1.1.3 examples/_src/readme/deprecated.erb.rb
cl-1.1.2 examples/_src/readme/deprecated.erb.rb
cl-1.1.1 examples/_src/readme/deprecated.erb.rb
cl-1.1.0 examples/_src/readme/deprecated.erb.rb
cl-1.0.5 examples/_src/readme/deprecated.erb.rb
cl-1.0.4 examples/_src/readme/deprecated.erb.rb
cl-1.0.3 examples/_src/readme/deprecated.erb.rb
cl-1.0.2 examples/_src/readme/deprecated.erb.rb
cl-1.0.1 examples/_src/readme/deprecated.erb.rb
cl-1.0.0 examples/src/readme/deprecated.erb.rb