Browse Source

libgis: parser sync to trunk

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@63103 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 10 years ago
parent
commit
a64fb8b37a
4 changed files with 17 additions and 3 deletions
  1. 1 0
      include/gis.h
  2. 5 1
      lib/gis/parser_help.c
  3. 1 1
      lib/gis/parser_rest.c
  4. 10 1
      lib/gis/parser_standard_options.c

+ 1 - 0
include/gis.h

@@ -218,6 +218,7 @@ typedef enum
     G_OPT_R_INPUT,		/*!< old input raster map */
     G_OPT_R_INPUTS,		/*!< old input raster maps */
     G_OPT_R_OUTPUT,		/*!< new output raster map */
+    G_OPT_R_OUTPUTS,		/*!< new output raster maps */
     G_OPT_R_MAP,		/*!< old input raster map */
     G_OPT_R_MAPS,		/*!< old input rasters map */
     G_OPT_R_BASE,		/*!< old input base raster map */

+ 5 - 1
lib/gis/parser_help.c

@@ -164,6 +164,9 @@ static void usage(FILE *fp, int markers)
     strcpy(item, " [--quiet]");
     len = show(fp, item, len);
 
+    strcpy(item, " [--ui]");
+    len = show(fp, item, len);
+
     fprintf(fp, "\n");
 
     /* Print help info for flags */
@@ -199,7 +202,8 @@ static void usage(FILE *fp, int markers)
     fprintf(fp, " --h   %s\n", _("Print usage summary"));
     fprintf(fp, " --v   %s\n", _("Verbose module output"));
     fprintf(fp, " --q   %s\n", _("Quiet module output"));
-
+    fprintf(fp, " --ui  %s\n", _("Force launching GUI dialog"));
+    
     /* Print help info for options */
 
     if (st->n_opts) {

+ 1 - 1
lib/gis/parser_rest.c

@@ -77,7 +77,7 @@ void G__usage_rest(void)
     }
     fprintf(stdout, "\n%s\n----------------------\n", _("SYNOPSIS"));
     fprintf(stdout, "**%s**\n\n", st->pgm_name);
-    fprintf(stdout, "**%s** help\n\n", st->pgm_name);
+    fprintf(stdout, "**%s** --help\n\n", st->pgm_name);
 
     fprintf(stdout, "**%s**", st->pgm_name);
 

+ 10 - 1
lib/gis/parser_standard_options.c

@@ -263,6 +263,15 @@ struct Option *G_define_standard_option(int opt)
 	Opt->gisprompt = "new,cell,raster";
 	Opt->description = _("Name for output raster map");
 	break;
+    case G_OPT_R_OUTPUTS:
+	Opt->key = "output";
+	Opt->type = TYPE_STRING;
+	Opt->key_desc = "name";
+	Opt->required = YES;
+	Opt->multiple = YES;
+	Opt->gisprompt = "new,cell,raster";
+	Opt->description = _("Name for output raster map(s)");
+	break;
     case G_OPT_R_MAP:
 	Opt->key = "map";
 	Opt->type = TYPE_STRING;
@@ -592,7 +601,7 @@ struct Option *G_define_standard_option(int opt)
 	Opt->gisprompt = "old,color_none,color";
 	Opt->label = _("Background color");
 	Opt->description =
-	    _("Either a standard GRASS color, R:G:B triplet, or \"none\"");
+	    _("Either a standard color name, R:G:B triplet, or \"none\"");
 	break;
 
 	/* misc */