[GRASS-SVN] r34796 - grass/trunk/imagery/i.cluster

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Dec 8 06:59:38 EST 2008


Author: martinl
Date: 2008-12-08 06:59:38 -0500 (Mon, 08 Dec 2008)
New Revision: 34796

Modified:
   grass/trunk/imagery/i.cluster/main.c
Log:
i.cluster: Quiet flag removed


Modified: grass/trunk/imagery/i.cluster/main.c
===================================================================
--- grass/trunk/imagery/i.cluster/main.c	2008-12-08 11:47:00 UTC (rev 34795)
+++ grass/trunk/imagery/i.cluster/main.c	2008-12-08 11:59:38 UTC (rev 34796)
@@ -45,7 +45,6 @@
 int *cellfd;
 FILE *report;
 int sample_rows, sample_cols;
-int verbose;
 time_t start_time;
 
 static int interrupted = 0;
@@ -69,11 +68,6 @@
 	    *convergence, *min_size, *report_file;
     } parm;
 
-    struct
-    {
-	struct Flag *q;
-    } flag;
-
     G_gisinit(argv[0]);
 
     module = G_define_module();
@@ -157,11 +151,7 @@
     parm.report_file->key = "reportfile";
     parm.report_file->required = NO;
     parm.report_file->description = _("Name for output file containing final report");
-
-    flag.q = G_define_flag();
-    flag.q->key = 'q';
-    flag.q->description = _("Quiet");
-
+    
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);
 
@@ -223,9 +213,7 @@
 	G_fatal_error(_("Illegal value of min_size (%s)"),
 		      parm.min_size->answer);
     }
-
-    verbose = !flag.q->answer;
-
+    
     if ((reportfile = parm.report_file->answer) == NULL)
 	report = fopen("/dev/null", "w");
     else



More information about the grass-commit mailing list