From c939c977ec86eaef38df73fc946ed11bb3d9dab0 Mon Sep 17 00:00:00 2001 From: Richard Fuchs <rfuchs@sipwise.com> Date: Sun, 18 Apr 2021 11:27:54 -0400 Subject: [PATCH] TT#14008 set getopt require_order to avoid confusing errors closes #1240 Change-Id: I4a9b7efb8e52f322916fa4368b80985946eb320d --- utils/rtpengine-ctl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/rtpengine-ctl b/utils/rtpengine-ctl index 0b07eea5d..d44b1ef3f 100755 --- a/utils/rtpengine-ctl +++ b/utils/rtpengine-ctl @@ -12,6 +12,8 @@ my $port; my $conffile = '/etc/rtpengine/rtpengine.conf'; my $listen; +Getopt::Long::Configure('require_order'); + my $optret = GetOptions( 'help|h' => sub { showusage(); exit 0; }, 'ip=s' => \$ip,