[GRASS-SVN] r62972 - grass/branches/releasebranch_7_0/imagery/i.landsat.toar

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 26 01:34:58 PST 2014


Author: martinl
Date: 2014-11-26 01:34:58 -0800 (Wed, 26 Nov 2014)
New Revision: 62972

Modified:
   grass/branches/releasebranch_7_0/imagery/i.landsat.toar/main.c
Log:
i.landsat.toar: use standardized options (#2409) - (merge r62970 from trunk)

Modified: grass/branches/releasebranch_7_0/imagery/i.landsat.toar/main.c
===================================================================
--- grass/branches/releasebranch_7_0/imagery/i.landsat.toar/main.c	2014-11-26 09:33:41 UTC (rev 62971)
+++ grass/branches/releasebranch_7_0/imagery/i.landsat.toar/main.c	2014-11-26 09:34:58 UTC (rev 62972)
@@ -77,20 +77,14 @@
     module->overwrite = TRUE;
 
     /* It defines the different parameters */
-    input_prefix = G_define_option();
-    input_prefix->key = "input_prefix";
+    input_prefix = G_define_standard_option(G_OPT_R_BASENAME_INPUT);
     input_prefix->label = _("Base name of input raster bands");
     input_prefix->description = _("Example: 'B.' for B.1, B.2, ...");
-    input_prefix->type = TYPE_STRING;
-    input_prefix->required = YES;
 
-    output_prefix = G_define_option();
-    output_prefix->key = "output_prefix";
+    output_prefix = G_define_standard_option(G_OPT_R_BASENAME_OUTPUT);
     output_prefix->label = _("Prefix for output raster maps");
     output_prefix->description =
 	_("Example: 'B.toar.' generates B.toar.1, B.toar.2, ...");
-    output_prefix->type = TYPE_STRING;
-    output_prefix->required = YES;
 
     metfn = G_define_standard_option(G_OPT_F_INPUT);
     metfn->key = "metfile";



More information about the grass-commit mailing list