samples/cmdline_parameters.rb in getopt-declare-1.09.7 vs samples/cmdline_parameters.rb in getopt-declare-1.12
- old
+ new
@@ -1,23 +1,23 @@
-#!/usr/bin/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
+#!/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