[GRASS-SVN] r73561 - grass/trunk/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Oct 16 12:25:44 PDT 2018


Author: huhabla
Date: 2018-10-16 12:25:44 -0700 (Tue, 16 Oct 2018)
New Revision: 73561

Modified:
   grass/trunk/lib/gis/parser.c
Log:
Fixed bug in parser introduced with r73525

Modified: grass/trunk/lib/gis/parser.c
===================================================================
--- grass/trunk/lib/gis/parser.c	2018-10-16 15:39:40 UTC (rev 73560)
+++ grass/trunk/lib/gis/parser.c	2018-10-16 19:25:44 UTC (rev 73561)
@@ -508,6 +508,11 @@
 	while (--argc) {
 	    ptr = *(++argv);
 
+	    /* JSON print option */
+	    if (strcmp(ptr, "--json") == 0) {
+		print_json = 1;
+	    }
+
 	    if (strcmp(ptr, "help") == 0 || strcmp(ptr, "--h") == 0 ||
 		strcmp(ptr, "-help") == 0 || strcmp(ptr, "--help") == 0) {
 		G_usage();
@@ -519,11 +524,6 @@
 		st->overwrite = 1;
 	    }
 
-	    /* JSON print option */
-	    if (strcmp(ptr, "--json") == 0) {
-		print_json = 1;
-	    }
-
 	    /* Verbose option */
 	    else if (strcmp(ptr, "--v") == 0 || strcmp(ptr, "--verbose") == 0) {
 		char buff[32];



More information about the grass-commit mailing list