samples/cmdline_code.rb in getopt-declare-1.09.7 vs samples/cmdline_code.rb in getopt-declare-1.12

- old
+ new

@@ -1,31 +1,31 @@ -#!/usr/bin/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() +#!/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()