浏览代码

remove -q flag, fix typo in G_message

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@33352 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 16 年之前
父节点
当前提交
09d0b60bda
共有 1 个文件被更改,包括 3 次插入11 次删除
  1. 3 11
      vector/v.build.polylines/main.c

+ 3 - 11
vector/v.build.polylines/main.c

@@ -92,7 +92,6 @@ int main(int argc, char **argv)
     struct Option *input;
     struct Option *output;
     struct Option *cats;
-    struct Flag *quietly;
 
     int polyline;
     int *lines_visited;
@@ -125,10 +124,6 @@ int main(int argc, char **argv)
 			   "multi;Assign multiple category numbers to polyline");
     cats->answer = "no";
 
-    quietly = G_define_flag();
-    quietly->key = 'q';
-    quietly->description = _("Do not print polyline info");
-
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);
 
@@ -187,11 +182,8 @@ int main(int argc, char **argv)
 	/* Find start of this polyline */
 	start_line = walk_back(&map, line);
 	start_type = Vect_read_line(&map, NULL, NULL, start_line);
-	if (!quietly->answer) {
-	    fprintf(stdout, "Polyline %d: start line = %d \n", polyline,
-		    start_line);
-	    fflush(stdout);
-	}
+
+	G_debug(1, "Polyline %d: start line = %d\n", polyline, start_line);
 
 	/* Walk forward and pick up coordinates */
 	points_in_polyline =
@@ -207,7 +199,7 @@ int main(int argc, char **argv)
 
     G_message(_("%d lines or boundaries found in vector map <%s@%s>"),
 	      nlines, Vect_get_name(&map), Vect_get_mapset(&map));
-    G_message(_("%d polylines stored to vector map <%s%s>"),
+    G_message(_("%d polylines stored in vector map <%s@%s>"),
 	      polyline, Vect_get_name(&Out), Vect_get_mapset(&Out));
 
     /* Copy (all linked) tables if needed */