Sha256: 900d72f157704ab4bb8408038a197a4534dbf773e39a1a42db1dfdbb7738f894
Contents?: true
Size: 465 Bytes
Versions: 16
Compression:
Stored size: 465 Bytes
Contents
#!/usr/bin/env ruby $: << File.expand_path('lib') require 'cl' class Add < Cl::Cmd opt '--retries COUNT', type: :integer, min: 1, max: 5 def run p retries end end Cl.new('owners').run(%w(add --retries 1)) # Output: # # 1 Cl.new('owners').run(%w(add --retries 10)) # Out of range: retries (max: 5) # # Usage: max add [options] # # Options: # # --retries COUNT type: integer, min: 1, max: 5 # --help Get help on this command
Version data entries
16 entries across 16 versions & 1 rubygems