summaryrefslogtreecommitdiffstats
path: root/mdkupdate
diff options
context:
space:
mode:
Diffstat (limited to 'mdkupdate')
-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: