From 3131afc3fc913934425909526bf4ee75ee8cd72b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 3 Apr 2006 14:01:59 +0000 Subject: proper way for preventing standalone from parsing @ARGV --- mdkupdate | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'mdkupdate') diff --git a/mdkupdate b/mdkupdate index e3115c36..8e2a6c06 100755 --- a/mdkupdate +++ b/mdkupdate @@ -21,8 +21,7 @@ ################################################################################ # workaround standalone.pm eating "--auto" from @ARGV: -my @REAL_ARGV; -BEGIN { @REAL_ARGV = @ARGV }; +BEGIN { $::no_global_argv_parsing = 1 }; use strict; use POSIX; @@ -93,7 +92,6 @@ my %options = ( 'h|help' => \&usage, ); -@ARGV = @REAL_ARGV; GetOptions(%options); # workaround an issue with browsers that sometimes drop the --bundle option: -- cgit v1.2.1