Browse Source

added G_OPT_I_SUBGROUP

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@31466 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 17 years ago
parent
commit
b5893b235d
2 changed files with 10 additions and 1 deletions
  1. 1 0
      include/gis.h
  2. 9 1
      lib/gis/parser.c

+ 1 - 0
include/gis.h

@@ -160,6 +160,7 @@ typedef enum {
     G_OPT_COLUMNS,  /* one or more attr columns */
 
     G_OPT_I_GROUP,  /* old input imagery group */
+    G_OPT_I_SUBGROUP,  /* old input imagery subgroup */
     G_OPT_R_INPUT,  /* old input raster map */
     G_OPT_R_INPUTS, /* old input raster maps */
     G_OPT_R_OUTPUT, /* new output raster map */

+ 9 - 1
lib/gis/parser.c

@@ -315,7 +315,7 @@ G_define_option (void)
  *
  * - general: G_OPT_WHERE, G_OPT_COLUMN, G_OPT_COLUMNS, G_OPT_TABLE, G_OPT_DRIVER, G_OPT_DATABASE
  *
- * - imagery: G_OPT_I_GROUP
+ * - imagery: G_OPT_I_GROUP, G_OPT_I_SUBGROUP
  *
  * - raster: G_OPT_R_INPUT, G_OPT_R_INPUTS, G_OPT_R_OUTPUT, G_OPT_R_MAP, G_OPT_R_MAPS, G_OPT_R_BASE, G_OPT_R_COVER, G_OPT_R_ELEV, G_OPT_R_ELEVS
  *
@@ -395,6 +395,14 @@ G_define_standard_option (int opt)
 	    Opt->gisprompt    = "old,group,group";
 	    Opt->description  = _("Name of input imagery group");
             break;
+        case G_OPT_I_SUBGROUP:
+	    Opt->key          = "subgroup";
+	    Opt->type         = TYPE_STRING;
+	    Opt->key_desc     = "name";
+	    Opt->required     = YES;
+	    Opt->gisprompt    = "old,subgroup,subgroup";
+	    Opt->description  = _("Name of input imagery subgroup");
+            break;
 
 	/* raster maps */    
 	case G_OPT_R_INPUT: