X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fnewgetopt.pl;h=0b7eed8bfe91e313222e2ef4c1e5813ff78a2a31;hb=f7e7eb72c805f1b630a3d1a32ed33c0f6da60bea;hp=38cad59c73ef83c401f98a5049f17b2433f62026;hpb=01e8c204017179e3fa6cbc2de78a2b253e247445;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/newgetopt.pl b/lib/newgetopt.pl index 38cad59..0b7eed8 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.17 1996-10-02 11:17:16+02 jv Exp $ { package newgetopt; @@ -15,12 +15,16 @@ $getopt_compat = 0; # disallow '+' to start options $option_start = "(--|-)"; $order = $REQUIRE_ORDER; + $bundling = 0; + $passthrough = 0; } else { $autoabbrev = 1; # automatic abbrev of options $getopt_compat = 1; # allow '+' to start options $option_start = "(--|-|\\+)"; $order = $PERMUTE; + $bundling = 0; + $passthrough = 0; } # Other configurable settings. @@ -45,8 +49,14 @@ 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; + $Getopt::Long::ignorecase = $newgetopt::ignorecase + if defined $newgetopt::ignorecase; + $Getopt::Long::passthrough = $newgetopt::passthrough + if defined $newgetopt::passthrough; &GetOptions; }