summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-04-03 14:01:59 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-04-03 14:01:59 +0000
commit3131afc3fc913934425909526bf4ee75ee8cd72b (patch)
treedf53239835904399a2a34be23a863e33a3a93f9a
parent54108a07c2b4f8c5ca697851d0077936b93160d6 (diff)
downloadmgaonline-3131afc3fc913934425909526bf4ee75ee8cd72b.tar
mgaonline-3131afc3fc913934425909526bf4ee75ee8cd72b.tar.gz
mgaonline-3131afc3fc913934425909526bf4ee75ee8cd72b.tar.bz2
mgaonline-3131afc3fc913934425909526bf4ee75ee8cd72b.tar.xz
mgaonline-3131afc3fc913934425909526bf4ee75ee8cd72b.zip
proper way for preventing standalone from parsing @ARGV
-rwxr-xr-xmdkupdate4
1 files changed, 1 insertions, 3 deletions
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: