Sha256: 8bed32f4a7b84494633f899c37d3504effa8e460953641348fc19b7e99aa1ebe
Contents?: true
Size: 932 Bytes
Versions: 4
Compression:
Stored size: 932 Bytes
Contents
#!/bin/env ruby require "Getopt/Declare" args = Getopt::Declare.new(<<'EOPARAM', ['-BUILD']) ============================================================ Required parameter: -in <infile> Input file [required] ------------------------------------------------------------ Optional parameters: (The first two are mutually exclusive) [mutex: -r -p] -r[and[om]] Output in random order -p[erm[ute]] Output all permutations --------------------------------------------------- -out <outfile> Optional output file ------------------------------------------------------------ Note: this program is known to run very slowly of files with long individual lines. ============================================================ EOPARAM # TRY STANDARD CONFIG FILES args.parse(['-CONFIG']) #args.parse('/usr/local/config/.demo_rc') #args.parse() or raise "cannot parse"; print args.inspect
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
getopt-declare-1.12 | samples/cmdline_file.rb |
getopt-declare-1.13 | samples/cmdline_file.rb |
getopt-declare-1.21 | samples/cmdline_file.rb |
getopt-declare-1.20 | samples/cmdline_file.rb |