Sha256: 39e82468d5f371d9a95fa2180167d2cb1d6832dba80d492784ee8b0bc909ddb0
Contents?: true
Size: 514 Bytes
Versions: 2
Compression:
Stored size: 514 Bytes
Contents
#!/usr/bin/env ruby $: << File.expand_path('lib') <%= run sq(<<-'rb') require 'cl' class Add < Cl::Cmd opt '--to GROUP', required: true def run p to: to end end rb -%> <%= run "Cl.new('owners').run(%w(add --to one))" %> <%= out '{:to=>"one"}' %> <%= run "Cl.new('owners').run(%w(add))" %> <%= out sq(<<-'str') Missing required option: to Usage: owners add [options] Options: --to GROUP type: string, required --help Get help on this command str %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cl-1.2.2 | examples/_src/readme/required.erb.rb |
cl-1.2.1 | examples/_src/readme/required.erb.rb |