Sha256: 6ed91269cfea3e27dea1f16baf5c3bb7ecdf391bbb5f0d67cba7d098dd9452d9

Contents?: true

Size: 798 Bytes

Versions: 10

Compression:

Stored size: 798 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

puts args.code()

Version data entries

10 entries across 10 versions & 1 rubygems

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