Sha256: c6d892abee1311d8c80cec937d83ab631657b74d1147ff99657bbaef7c67d72b

Contents?: true

Size: 936 Bytes

Versions: 10

Compression:

Stored size: 936 Bytes

Contents

#!/usr/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

10 entries across 10 versions & 1 rubygems

Version Path
getopt-declare-1.32 samples/cmdline_file.rb
getopt-declare-1.31 samples/cmdline_file.rb
getopt-declare-1.30 samples/cmdline_file.rb
getopt-declare-1.29 samples/cmdline_file.rb
getopt-declare-1.27 samples/cmdline_file.rb
getopt-declare-1.23 samples/cmdline_file.rb
getopt-declare-1.28 samples/cmdline_file.rb
getopt-declare-1.22 samples/cmdline_file.rb
getopt-declare-1.25 samples/cmdline_file.rb
getopt-declare-1.26 samples/cmdline_file.rb