From: Perl 5 Porters Date: Thu, 9 May 1996 04:30:28 +0000 (+0000) Subject: Update to version 1.16 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=01d0d956947d0fae590145ef30d50b879af36b0e;p=p5sagit%2Fp5-mst-13.2.git Update to version 1.16 --- diff --git a/lib/newgetopt.pl b/lib/newgetopt.pl index 38cad59..d284b5b 100644 --- a/lib/newgetopt.pl +++ b/lib/newgetopt.pl @@ -1,6 +1,6 @@ # newgetopt.pl -- new options parsing. # Now just a wrapper around the Getopt::Long module. -# $Id: newgetopt.pl,v 1.15 1995/12/26 14:57:33 jv Exp $ +# $Id: newgetopt.pl,v 1.16 1996/03/16 11:46:08 jv Exp $ { package newgetopt; @@ -15,12 +15,14 @@ $getopt_compat = 0; # disallow '+' to start options $option_start = "(--|-)"; $order = $REQUIRE_ORDER; + $bundling = 0; } else { $autoabbrev = 1; # automatic abbrev of options $getopt_compat = 1; # allow '+' to start options $option_start = "(--|-|\\+)"; $order = $PERMUTE; + $bundling = 0; } # Other configurable settings. @@ -45,6 +47,8 @@ sub NGetOpt { if defined $newgetopt::option_start; $Getopt::Long::order = $newgetopt::order if defined $newgetopt::order; + $Getopt::Long::bundling = $newgetopt::bundling + if defined $newgetopt::bundling; $Getopt::Long::ignorecase = $newgetopt::ignorecase if defined $newgetopt::ignorecase;