Преглед изворни кода

Don't silently ignore invalid arguments, raise an error

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@49481 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements пре 13 година
родитељ
комит
f284ab7537
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lib/gis/parser.c

+ 1 - 1
lib/gis/parser.c

@@ -525,7 +525,7 @@ int G_parser(int argc, char **argv)
 	    }
 
 	    /* If we see the non valid argument (no "=", just argument) */
-	    else if (contains(ptr, '=') == 0) {
+	    else {
 		G_asprintf(&err, _("Sorry <%s> is not a valid option"), ptr);
 		append_error(err);
 	    }