Browse Source

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 years ago
parent
commit
f284ab7537
1 changed files with 1 additions and 1 deletions
  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);
 	    }