From bb0ff4b06988889f57e3b428161ead42bf8f656c Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 16 May 2023 17:22:41 +0200 Subject: [PATCH] po2js generator: replace obsoleted Getopt::Std with Getopt::Long Signed-off-by: Thomas Lamprecht --- po2js.pl | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/po2js.pl b/po2js.pl index f2f289e..93c10c1 100755 --- a/po2js.pl +++ b/po2js.pl @@ -2,19 +2,18 @@ use strict; use warnings; -use Getopt::Std; -use Locale::PO; -use JSON; + use Encode; +use Getopt::Long; +use JSON; +use Locale::PO; # current limits: # - we do not support plural. forms # - no message content support my $options = {}; - -getopts('t:o:v:', $options) || - die "unable to parse options\n"; +GetOptions($options, 't=s', 'o=s', 'v=s') or die "unable to parse options\n"; die "no files specified\n" if !scalar(@ARGV); -- 2.39.2