Sha256: 57b2829d7c725a46c7428eaa21737aebabb29a1a7ddd0b9139a15a898adbaa05

Contents?: true

Size: 787 Bytes

Versions: 10

Compression:

Stored size: 787 Bytes

Contents

#!/usr/bin/env ruby

require "Getopt/Declare"

args = Getopt::Declare.new(<<'EOPARAM')

   ============================================================
   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

print args.inspect

Version data entries

10 entries across 10 versions & 1 rubygems

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