js generator: replace obsoleted Getopt::Std with Getopt::Long

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-05-09 09:22:16 +02:00
parent 6ad9f0ce25
commit 3bee6f0e77

View File

@ -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];