From: Sandro Santilli Date: Wed, 9 Oct 2013 15:58:00 +0000 (+0000) Subject: Print usage and exit if only option switches are given to run_test.pl X-Git-Tag: 2.2.0rc1~1337 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81726238a262a64c88db58f955236bbc9374a61a;p=postgis Print usage and exit if only option switches are given to run_test.pl git-svn-id: http://svn.osgeo.org/postgis/trunk@12023 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/regress/run_test.pl b/regress/run_test.pl index 7fd16f520..dc2630336 100755 --- a/regress/run_test.pl +++ b/regress/run_test.pl @@ -20,12 +20,6 @@ use strict; # Check output against _expected ################################################################## -if ( @ARGV < 1 ) -{ - usage(); -} - - ################################################################## # Global configuration items ################################################################## @@ -65,6 +59,13 @@ GetOptions ( 'extensions' => \$OPT_EXTENSIONS ); +if ( @ARGV < 1 ) +{ + usage(); +} + + + ################################################################## # Set the locale to "C" so error messages match # Save original locale to set back