develooper Front page | perl.perl5.porters | Postings from February 2006

[PATCH] Getopt::Long ignore_case_always docs

Thread Next
From:
Brendan O'Dea
Date:
February 24, 2006 05:43
Subject:
[PATCH] Getopt::Long ignore_case_always docs
Message ID:
20060224134340.GA26128@londo.c47.org
[Debian bug #354197]

The bundling example in the Getopt::Long documentation uses
"ignorecase_always", which is not a recognised option.

For consistency with "ignorecase"/"ignore_case", perhaps
"ignorecase_always" should be recognised.

--bod

--- Long.pm.orig	2006-02-25 00:36:01.000000000 +1100
+++ Long.pm	2006-02-25 00:37:32.000000000 +1100
@@ -1262,7 +1262,7 @@
 	elsif ( $try eq 'ignorecase' or $try eq 'ignore_case' ) {
 	    $ignorecase = $action;
 	}
-	elsif ( $try eq 'ignore_case_always' ) {
+	elsif ( $try eq 'ignorecase_always' or $try eq 'ignore_case_always' ) {
 	    $ignorecase = $action ? 2 : 0;
 	}
 	elsif ( $try eq 'bundling' ) {

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About