Sha256: 09f23e15a444372b44606d2545434f03ef02443fb0e63c868ec244c472b666d1

Contents?: true

Size: 286 Bytes

Versions: 16

Compression:

Stored size: 286 Bytes

Contents

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

require 'cl'

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

  def run
    p opts, to, to?, group, group?
  end
end

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

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

Version data entries

16 entries across 16 versions & 1 rubygems

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