Sha256: 1d466b87fdc03bf21aa26d8a73bdd5a533d93760644b48519435dea0283c01d8
Contents?: true
Size: 631 Bytes
Versions: 15
Compression:
Stored size: 631 Bytes
Contents
#!/usr/bin/env ruby $: << File.expand_path('lib') <%= run sq(<<-'rb') class Add < Cl::Cmd opt '--to GROUP' opt '--other GROUP', requires: :to def run p to: to, other: other end end rb -%> <%= run "Cl.new('owners').run(%w(add --to one --other two))" %> <%= out '{:to=>"one", :other=>"two"}' %> <%= run "Cl.new('owners').run(%w(add --other two))" %> <%= out sq(<<-'str') Missing option: to (required by other) Usage: owners add [options] Options: --to GROUP type: string --other GROUP type: string, requires: to --help Get help on this command str %>
Version data entries
15 entries across 15 versions & 1 rubygems