]> git.proxmox.com Git - proxmox-i18n.git/commitdiff
js generator: replace obsoleted Getopt::Std with Getopt::Long
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 9 May 2023 07:22:16 +0000 (09:22 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 9 May 2023 07:22:16 +0000 (09:22 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
jsgettext.pl

index 675fd3413f402d992d8ab332d69ca2865f8554c7..7f758fd9e5b3f5f7e0fb0c2ca0f46690df59dd58 100755 (executable)
@@ -4,14 +4,12 @@ use strict;
 use warnings;
 
 use Encode;
-use Getopt::Std;
+use Getopt::Long;
 use Locale::PO;
 use Time::Local;
 
 my $options = {};
-
-getopts('o:b:p:', $options) ||
-    die "unable to parse options\n";
+GetOptions($options, 'o=s', 'b=s', 'p=s') or die "unable to parse options\n";
 
 my $dirs = [@ARGV];