Sha256: 27fc0f0d959b088dd7c9b80b01f79d496eecb1e511ebf0e64bca95fad1603db9

Contents?: true

Size: 491 Bytes

Versions: 14

Compression:

Stored size: 491 Bytes

Contents

#!/usr/bin/env ruby

require "Getopt/Declare"

args = Getopt::Declare.new( %q{

  		-v <value> [etc]	One or more values
  		<infile:if>		Input file [required]
  		-o <outfiles>...	Output files
  	} )

if args['-v']
  print  "Using value: ", args['-v']['<value>']
  print  " (etcetera)" if args['-v']['etc']
  print  "\n"
end


infile = File.new( args['<infile>'] )
data = infile

for outfile in args['-o']
  #outfile = File.new(outfile,'w')
  print "processed ",outfile
  #outfile.close
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
getopt-declare-1.32 samples/cmdline_array.rb
getopt-declare-1.31 samples/cmdline_array.rb
getopt-declare-1.30 samples/cmdline_array.rb
getopt-declare-1.29 samples/cmdline_array.rb
getopt-declare-1.22 samples/cmdline_array.rb
getopt-declare-1.13 samples/cmdline_array.rb
getopt-declare-1.23 samples/cmdline_array.rb
getopt-declare-1.28 samples/cmdline_array.rb
getopt-declare-1.21 samples/cmdline_array.rb
getopt-declare-1.25 samples/cmdline_array.rb
getopt-declare-1.12 samples/cmdline_array.rb
getopt-declare-1.20 samples/cmdline_array.rb
getopt-declare-1.27 samples/cmdline_array.rb
getopt-declare-1.26 samples/cmdline_array.rb