From b12729afa59f766f313466587b6a7dddb6eb127b Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Sat, 25 May 2013 18:14:12 +0000 Subject: [PATCH] Not all args with a dash are options, only those starting with one git-svn-id: http://svn.osgeo.org/postgis/trunk@11501 b70326c6-7e19-0410-871a-916f4a2858ee --- utils/postgis_restore.pl.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/postgis_restore.pl.in b/utils/postgis_restore.pl.in index 1ee1c6180..aaafdc4ad 100755 --- a/utils/postgis_restore.pl.in +++ b/utils/postgis_restore.pl.in @@ -58,7 +58,7 @@ my $POSTGIS_SCHEMA; my $SRID_MAXIMUM = @SRID_MAXIMUM@; my $SRID_USER_MAXIMUM = @SRID_USER_MAXIMUM@; -while (@ARGV && $ARGV[0] =~ /-/) { +while (@ARGV && $ARGV[0] =~ /^-/) { my $arg = shift(@ARGV); if ( $arg eq '-v' ) { $DEBUG = 1; -- 2.50.1