From: Sandro Santilli Date: Sat, 25 May 2013 18:14:12 +0000 (+0000) Subject: Not all args with a dash are options, only those starting with one X-Git-Tag: 2.1.0beta3~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b12729afa59f766f313466587b6a7dddb6eb127b;p=postgis 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 --- 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;