[GRASS-SVN] r62973 - grass/trunk/imagery/i.pca

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 26 01:38:42 PST 2014


Author: martinl
Date: 2014-11-26 01:38:41 -0800 (Wed, 26 Nov 2014)
New Revision: 62973

Modified:
   grass/trunk/imagery/i.pca/main.c
Log:
i.pca: use standardized options (#2409)

Modified: grass/trunk/imagery/i.pca/main.c
===================================================================
--- grass/trunk/imagery/i.pca/main.c	2014-11-26 09:34:58 UTC (rev 62972)
+++ grass/trunk/imagery/i.pca/main.c	2014-11-26 09:38:41 UTC (rev 62973)
@@ -80,14 +80,10 @@
     opt_in = G_define_standard_option(G_OPT_R_INPUTS);
     opt_in->description = _("Name of two or more input raster maps or imagery group");
 
-    opt_out = G_define_option();
-    opt_out->label = _("Prefix for output raster maps");
+    opt_out = G_define_standard_option(G_OPT_R_BASENAME_OUTPUT);
+    opt_out->label = _("Name for output basename raster map(s)");
     opt_out->description =
 	_("A numerical suffix will be added for each component map");
-    opt_out->key = "output_prefix";
-    opt_out->type = TYPE_STRING;
-    opt_out->key_desc = "string";
-    opt_out->required = YES;
 
     opt_scale = G_define_option();
     opt_scale->key = "rescale";



More information about the grass-commit mailing list