[GRASS-SVN] r31465 - grass/branches/releasebranch_6_3/imagery/i.class

svn_grass at osgeo.org svn_grass at osgeo.org
Wed May 21 09:21:08 EDT 2008


Author: neteler
Date: 2008-05-21 09:21:08 -0400 (Wed, 21 May 2008)
New Revision: 31465

Modified:
   grass/branches/releasebranch_6_3/imagery/i.class/main.c
Log:
fix interactive usage problem (thanks to Glynn); message cosmetics for interactive mode (merge from trunk)

Modified: grass/branches/releasebranch_6_3/imagery/i.class/main.c
===================================================================
--- grass/branches/releasebranch_6_3/imagery/i.class/main.c	2008-05-21 13:20:00 UTC (rev 31464)
+++ grass/branches/releasebranch_6_3/imagery/i.class/main.c	2008-05-21 13:21:08 UTC (rev 31465)
@@ -61,9 +61,11 @@
 
     img_grp = G_define_standard_option (G_OPT_I_GROUP);
 
-    img_subgrp = G_define_standard_option (G_OPT_I_GROUP);
+    img_subgrp = G_define_option();
     img_subgrp->key = "subgroup";
-    img_subgrp->gisprompt    = "old,subgroup,subgroup";
+    img_subgrp->type = TYPE_STRING;
+    img_subgrp->key_desc = "name";
+    img_subgrp->required = YES;
     img_subgrp->description  = _("Name of input imagery subgroup");
 
     out_sig = G_define_standard_option(G_OPT_F_OUTPUT);



More information about the grass-commit mailing list