Sha256: 32f91ade7197a4f1096471bcc4b1c9d9294b7d6f3e410fed1029e9a135590e55
Contents?: true
Size: 544 Bytes
Versions: 4
Compression:
Stored size: 544 Bytes
Contents
#!/bin/env ruby require "Getopt/Declare" args = Getopt::Declare.new( <<'EOPARAM' ) [pvtype: type /AB|[OAB]/ ] [pvtype: Rh? /Rh[+-]/ ] [pvtype: days :+i { reject( (_VAL_ < 14)," #{_PARAM_} (too soon!)" ) } ] -donated <d:days> Days since last donation -applied <a:days> Days since applied to donate -blood <type:type> [<rh:Rh?>] Specify blood type and (optionally) rhesus factor EOPARAM print args.inspect
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
getopt-declare-1.13 | samples/cmdline_pvtype.rb |
getopt-declare-1.21 | samples/cmdline_pvtype.rb |
getopt-declare-1.12 | samples/cmdline_pvtype.rb |
getopt-declare-1.20 | samples/cmdline_pvtype.rb |