Sha256: ce775e8a744660e4c934041c6c25ebda5709c0b43d3a407975767786b4c41a35

Contents?: true

Size: 428 Bytes

Versions: 10

Compression:

Stored size: 428 Bytes

Contents

#!/usr/bin/env ruby

require "Getopt/Declare"

specification = %q%
        -list <l>...				ttt
        -out <out>				ttt
	in=<infile>				ttt
	+range <from>..<to>			ttt
	--lines <start> - <stop>		ttt
	ignore bad lines			ttt
	<outfile>				ttt
	-copy <files>... <dir>			copy files to dir
	-range <from:i> [[..] [<to:i>] ]	opt. range
					{ to = 10 if to == "" } 
	
%


args = Getopt::Declare.new(specification)


puts args.inspect

Version data entries

10 entries across 10 versions & 1 rubygems

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