Bladeren bron

parser: G_OPT_STRDS_OUTPUTS added (trac https://trac.osgeo.org/grass/ticket/3742)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@74118 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 6 jaren geleden
bovenliggende
commit
92706eb08c
2 gewijzigde bestanden met toevoegingen van 10 en 0 verwijderingen
  1. 1 0
      include/gis.h
  2. 9 0
      lib/gis/parser_standard_options.c

+ 1 - 0
include/gis.h

@@ -298,6 +298,7 @@ typedef enum
     G_OPT_STRDS_INPUT,          /*!< old input space time raster dataset */
     G_OPT_STRDS_INPUTS,         /*!< old input space time raster datasets */
     G_OPT_STRDS_OUTPUT,         /*!< new output space time raster dataset */
+    G_OPT_STRDS_OUTPUTS,        /*!< new output space time raster datasets */
     G_OPT_STR3DS_INPUT,         /*!< old input space time raster3d dataset */
     G_OPT_STR3DS_INPUTS,        /*!< old input space time raster3d datasets */
     G_OPT_STR3DS_OUTPUT,        /*!< new output space time raster3d dataset */

+ 9 - 0
lib/gis/parser_standard_options.c

@@ -786,6 +786,15 @@ struct Option *G_define_standard_option(int opt)
 	Opt->gisprompt = "new,strds,strds";
 	Opt->description = _("Name of the output space time raster dataset");
 	break;
+    case G_OPT_STRDS_OUTPUTS:
+	Opt->key = "outputs";
+	Opt->type = TYPE_STRING;
+	Opt->key_desc = "name";
+	Opt->required = YES;
+	Opt->multiple = YES;
+	Opt->gisprompt = "new,strds,strds";
+	Opt->description = _("Name of the output space time raster datasets");
+	break;
     case G_OPT_STVDS_INPUT:
 	Opt->key = "input";
 	Opt->type = TYPE_STRING;