Browse Source

use standardized options (files)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54699 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 năm trước cách đây
mục cha
commit
bb15bcadff
52 tập tin đã thay đổi với 84 bổ sung198 xóa
  1. 2 3
      display/d.font/main.c
  2. 2 5
      display/d.graph/main.c
  3. 2 3
      display/d.legend/main.c
  4. 3 4
      display/d.rast.arrow/main.c
  5. 2 3
      display/d.text/main.c
  6. 4 4
      display/d.vect/main.c
  7. 2 6
      general/g.pnmcat/main.c
  8. 1 1
      imagery/i.ortho.photo/i.ortho.camera/main.c
  9. 2 4
      raster/r.in.bin/main.c
  10. 4 10
      raster/r.in.mat/main.c
  11. 1 1
      raster/r.in.png/main.c
  12. 3 7
      raster/r.li/r.li.cwed/cwed.c
  13. 1 3
      raster/r.li/r.li.dominance/dominance.c
  14. 1 3
      raster/r.li/r.li.edgedensity/edgedensity.c
  15. 1 3
      raster/r.li/r.li.mpa/mpa.c
  16. 1 3
      raster/r.li/r.li.mps/mps.c
  17. 1 3
      raster/r.li/r.li.padcv/padcv.c
  18. 1 3
      raster/r.li/r.li.padrange/padrange.c
  19. 1 3
      raster/r.li/r.li.padsd/padsd.c
  20. 1 3
      raster/r.li/r.li.patchdensity/main.c
  21. 1 3
      raster/r.li/r.li.patchnum/main.c
  22. 1 3
      raster/r.li/r.li.pielou/pielou.c
  23. 1 3
      raster/r.li/r.li.renyi/renyi.c
  24. 1 3
      raster/r.li/r.li.richness/richness.c
  25. 1 3
      raster/r.li/r.li.shannon/shannon.c
  26. 1 3
      raster/r.li/r.li.shape/main.c
  27. 1 3
      raster/r.li/r.li.simpson/simpson.c
  28. 1 2
      raster/r.out.arc/main.c
  29. 1 4
      raster/r.out.ascii/main.c
  30. 3 5
      raster/r.out.mat/main.c
  31. 3 5
      raster/r.out.tiff/main.c
  32. 2 5
      raster/r.out.vrml/main.c
  33. 3 11
      raster/r.out.vtk/parameters.c
  34. 1 4
      raster/r.profile/main.c
  35. 2 6
      raster3d/r3.in.ascii/main.c
  36. 1 1
      raster3d/r3.in.bin/main.c
  37. 2 4
      raster3d/r3.mkdspf/main.c
  38. 1 4
      raster3d/r3.out.ascii/main.c
  39. 1 4
      raster3d/r3.out.v5d/main.c
  40. 2 4
      scripts/db.in.ogr/db.in.ogr.py
  41. 2 4
      scripts/db.out.ogr/db.out.ogr.py
  42. 1 2
      scripts/r.in.wms/r.in.wms.py
  43. 1 1
      scripts/r.unpack/r.unpack.py
  44. 1 6
      scripts/r3.in.xyz/r3.in.xyz.py
  45. 1 5
      scripts/v.pack/v.pack.py
  46. 2 5
      scripts/v.unpack/v.unpack.py
  47. 1 1
      vector/v.db.connect/main.c
  48. 1 1
      vector/v.edit/args.c
  49. 2 2
      vector/v.net/args.c
  50. 2 6
      vector/v.out.vtk/main.c
  51. 2 5
      visualization/wximgview/main.cpp
  52. 2 5
      visualization/ximgview/main.c

+ 2 - 3
display/d.font/main.c

@@ -56,13 +56,12 @@ int main(int argc, char **argv)
     opt1->answer = "romans";
     opt1->answer = "romans";
     opt1->description = _("Choose new current font");
     opt1->description = _("Choose new current font");
 
 
-    opt2 = G_define_option();
+    opt2 = G_define_standard_option(G_OPT_F_INPUT);
     opt2->key = "path";
     opt2->key = "path";
-    opt2->type = TYPE_STRING;
     opt2->required = NO;
     opt2->required = NO;
     opt2->description =
     opt2->description =
 	_("Path to Freetype-compatible font including file name");
 	_("Path to Freetype-compatible font including file name");
-    opt2->gisprompt = "old_file,file,font";
+    opt2->gisprompt = "old,font,file";
 
 
     opt3 = G_define_option();
     opt3 = G_define_option();
     opt3->key = "charset";
     opt3->key = "charset";

+ 2 - 5
display/d.graph/main.c

@@ -61,14 +61,11 @@ int main(int argc, char **argv)
 	_("Program for generating and displaying simple graphics on the "
 	_("Program for generating and displaying simple graphics on the "
 	  "display monitor.");
 	  "display monitor.");
 
 
-    opt1 = G_define_option();
-    opt1->key = "input";
-    opt1->type = TYPE_STRING;
+    opt1 = G_define_standard_option(G_OPT_F_INPUT);
     opt1->required = NO;
     opt1->required = NO;
     opt1->description = _("Name of file containing graphics commands, "
     opt1->description = _("Name of file containing graphics commands, "
 			  "if not given reads from standard input");
 			  "if not given reads from standard input");
-    opt1->gisprompt = "old_file,file,input";
-
+    
     opt2 = G_define_option();
     opt2 = G_define_option();
     opt2->key = "color";
     opt2->key = "color";
     opt2->type = TYPE_STRING;
     opt2->type = TYPE_STRING;

+ 2 - 3
display/d.legend/main.c

@@ -167,12 +167,11 @@ int main(int argc, char **argv)
     opt_fontscale->description = _("Font scaling factor for floating point legends");
     opt_fontscale->description = _("Font scaling factor for floating point legends");
     opt_fontscale->guisection = _("Font settings");
     opt_fontscale->guisection = _("Font settings");
 
 
-    opt_path = G_define_option();
+    opt_path = G_define_standard_option(G_OPT_F_INPUT);
     opt_path->key = "path";
     opt_path->key = "path";
-    opt_path->type = TYPE_STRING;
     opt_path->required = NO;
     opt_path->required = NO;
     opt_path->description = _("Path to font file");
     opt_path->description = _("Path to font file");
-    opt_path->gisprompt = "old_file,file,font";
+    opt_path->gisprompt = "old_file,font,file";
     opt_path->guisection = _("Font settings");
     opt_path->guisection = _("Font settings");
 
 
     opt_charset = G_define_option();
     opt_charset = G_define_option();

+ 3 - 4
display/d.rast.arrow/main.c

@@ -121,10 +121,9 @@ int main(int argc, char **argv)
     
     
     opt4 = G_define_option();
     opt4 = G_define_option();
     opt4->key = "grid_color";
     opt4->key = "grid_color";
-    opt4->type = TYPE_STRING;
     opt4->required = NO;
     opt4->required = NO;
     opt4->answer = "gray";
     opt4->answer = "gray";
-    opt4->gisprompt = "old_color,color,color_none";
+    opt4->gisprompt = "old,color_none,color";
     opt4->description = _("Color for drawing grid or \"none\"");
     opt4->description = _("Color for drawing grid or \"none\"");
     opt4->guisection = _("Colors");
     opt4->guisection = _("Colors");
 
 
@@ -133,7 +132,7 @@ int main(int argc, char **argv)
     opt5->type = TYPE_STRING;
     opt5->type = TYPE_STRING;
     opt5->required = NO;
     opt5->required = NO;
     opt5->answer = DEFAULT_FG_COLOR;
     opt5->answer = DEFAULT_FG_COLOR;
-    opt5->gisprompt = "old_color,color,color_none";
+    opt5->gisprompt = "old,color_none,color";
     opt5->description = _("Color for drawing X's (null values)");
     opt5->description = _("Color for drawing X's (null values)");
     opt5->guisection = _("Colors");
     opt5->guisection = _("Colors");
 
 
@@ -142,7 +141,7 @@ int main(int argc, char **argv)
     opt6->type = TYPE_STRING;
     opt6->type = TYPE_STRING;
     opt6->required = NO;
     opt6->required = NO;
     opt6->answer = "red";
     opt6->answer = "red";
-    opt6->gisprompt = "old_color,color,color_none";
+    opt6->gisprompt = "old,color_none,color";
     opt6->description = _("Color for showing unknown information");
     opt6->description = _("Color for showing unknown information");
     opt6->guisection = _("Colors");
     opt6->guisection = _("Colors");
 
 

+ 2 - 3
display/d.text/main.c

@@ -218,12 +218,11 @@ int main(int argc, char **argv)
     opt.font->required = NO;
     opt.font->required = NO;
     opt.font->description = _("Font name");
     opt.font->description = _("Font name");
 
 
-    opt.path = G_define_option();
+    opt.path = G_define_standard_option(G_OPT_F_INPUT);
     opt.path->key = "path";
     opt.path->key = "path";
-    opt.path->type = TYPE_STRING;
     opt.path->required = NO;
     opt.path->required = NO;
     opt.path->description = _("Path to font file");
     opt.path->description = _("Path to font file");
-    opt.path->gisprompt = "old_file,file,font";
+    opt.path->gisprompt = "old,font,file";
 
 
     opt.charset = G_define_option();
     opt.charset = G_define_option();
     opt.charset->key = "charset";
     opt.charset->key = "charset";

+ 4 - 4
display/d.vect/main.c

@@ -118,7 +118,7 @@ int main(int argc, char **argv)
     color_opt->answer = DEFAULT_FG_COLOR;
     color_opt->answer = DEFAULT_FG_COLOR;
     color_opt->label = _("Feature color");
     color_opt->label = _("Feature color");
     color_opt->guisection = _("Colors");
     color_opt->guisection = _("Colors");
-    color_opt->gisprompt = "old_color,color,color_none";
+    color_opt->gisprompt = "old,color_none,color";
     color_opt->description =
     color_opt->description =
 	_("Either a standard GRASS color, R:G:B triplet, or \"none\"");
 	_("Either a standard GRASS color, R:G:B triplet, or \"none\"");
 
 
@@ -128,7 +128,7 @@ int main(int argc, char **argv)
     fcolor_opt->answer = "200:200:200";
     fcolor_opt->answer = "200:200:200";
     fcolor_opt->label = _("Area fill color");
     fcolor_opt->label = _("Area fill color");
     fcolor_opt->guisection = _("Colors");
     fcolor_opt->guisection = _("Colors");
-    fcolor_opt->gisprompt = "old_color,color,color_none";
+    fcolor_opt->gisprompt = "old,color_none,color";
     fcolor_opt->description =
     fcolor_opt->description =
 	_("Either a standard GRASS color, R:G:B triplet, or \"none\"");
 	_("Either a standard GRASS color, R:G:B triplet, or \"none\"");
 
 
@@ -229,7 +229,7 @@ int main(int argc, char **argv)
     bgcolor_opt->answer = "none";
     bgcolor_opt->answer = "none";
     bgcolor_opt->guisection = _("Labels");
     bgcolor_opt->guisection = _("Labels");
     bgcolor_opt->label = _("Label background color");
     bgcolor_opt->label = _("Label background color");
-    bgcolor_opt->gisprompt = "old_color,color,color_none";
+    bgcolor_opt->gisprompt = "old,color_none,color";
     bgcolor_opt->description =
     bgcolor_opt->description =
 	_("Either a standard GRASS color, R:G:B triplet, or \"none\"");
 	_("Either a standard GRASS color, R:G:B triplet, or \"none\"");
 
 
@@ -239,7 +239,7 @@ int main(int argc, char **argv)
     bcolor_opt->answer = "none";
     bcolor_opt->answer = "none";
     bcolor_opt->guisection = _("Labels");
     bcolor_opt->guisection = _("Labels");
     bcolor_opt->label = _("Label border color");
     bcolor_opt->label = _("Label border color");
-    bcolor_opt->gisprompt = "old_color,color,color_none";
+    bcolor_opt->gisprompt = "old,color_none,color";
     bcolor_opt->description =
     bcolor_opt->description =
 	_("Either a standard GRASS color, R:G:B triplet, or \"none\"");
 	_("Either a standard GRASS color, R:G:B triplet, or \"none\"");
 
 

+ 2 - 6
general/g.pnmcat/main.c

@@ -127,13 +127,9 @@ int main(int argc, char *argv[])
     opt.base->required = YES;
     opt.base->required = YES;
     opt.base->description = _("Base name of input files");
     opt.base->description = _("Base name of input files");
 
 
-    opt.out = G_define_option();
-    opt.out->key = "output";
-    opt.out->type = TYPE_STRING;
+    opt.out = G_define_standard_option(G_OPT_F_OUTPUT);
     opt.out->required = YES;
     opt.out->required = YES;
-    opt.out->description = _("Name of output file");
-    opt.out->gisprompt = "new_file,file,output";
-
+    
     opt.rows = G_define_option();
     opt.rows = G_define_option();
     opt.rows->key = "rows";
     opt.rows->key = "rows";
     opt.rows->type = TYPE_INTEGER;
     opt.rows->type = TYPE_INTEGER;

+ 1 - 1
imagery/i.ortho.photo/i.ortho.camera/main.c

@@ -66,7 +66,7 @@ int main(int argc, char *argv[])
     camera_opt = G_define_standard_option(G_OPT_F_INPUT);
     camera_opt = G_define_standard_option(G_OPT_F_INPUT);
     camera_opt->key = "camera";
     camera_opt->key = "camera";
     camera_opt->required = YES;
     camera_opt->required = YES;
-    camera_opt->gisprompt = "old_file,camera,camera";
+    camera_opt->gisprompt = "old,camera,file";
     camera_opt->label =
     camera_opt->label =
 	_("Name of camera reference file");
 	_("Name of camera reference file");
 
 

+ 2 - 4
raster/r.in.bin/main.c

@@ -262,12 +262,10 @@ int main(int argc, char *argv[])
     flag.gmt_hd->description = _("Get region info from GMT style header");
     flag.gmt_hd->description = _("Get region info from GMT style header");
     flag.gmt_hd->guisection = _("Bounds");
     flag.gmt_hd->guisection = _("Bounds");
 
 
-    parm.input = G_define_option();
-    parm.input->key = "input";
-    parm.input->type = TYPE_STRING;
+    parm.input = G_define_standard_option(G_OPT_F_INPUT);
     parm.input->required = YES;
     parm.input->required = YES;
     parm.input->description = _("Binary raster file to be imported");
     parm.input->description = _("Binary raster file to be imported");
-    parm.input->gisprompt = "old_file,file,input";
+    parm.input->gisprompt = "old,bin,file";
 
 
     parm.output = G_define_standard_option(G_OPT_R_OUTPUT);
     parm.output = G_define_standard_option(G_OPT_R_OUTPUT);
 
 

+ 4 - 10
raster/r.in.mat/main.c

@@ -95,19 +95,13 @@ int main(int argc, char *argv[])
 
 
 
 
     /* Define the different options */
     /* Define the different options */
-    inputfile = G_define_option();
-    inputfile->key = "input";
-    inputfile->type = TYPE_STRING;
+    inputfile = G_define_standard_option(G_OPT_F_INPUT);
     inputfile->required = YES;
     inputfile->required = YES;
-    inputfile->gisprompt = "old_file,file,input";
-    inputfile->description = _("Name of an existing MAT-File(v4)");
+    inputfile->description = _("Name of input MAT-File(v4)");
 
 
-    outputfile = G_define_option();
-    outputfile->key = "output";
-    outputfile->type = TYPE_STRING;
+    outputfile = G_define_standard_option(G_OPT_R_OUTPUT);
     outputfile->required = NO;
     outputfile->required = NO;
-    outputfile->gisprompt = "new,cell,raster";
-    outputfile->description = _("Name for the output raster map (override)");
+    outputfile->description = _("Name for output raster map (override)");
 
 
     if (G_parser(argc, argv))
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);
 	exit(EXIT_FAILURE);

+ 1 - 1
raster/r.in.png/main.c

@@ -522,7 +522,7 @@ int main(int argc, char *argv[])
     module->description = _("Imports non-georeferenced PNG format image.");
     module->description = _("Imports non-georeferenced PNG format image.");
 
 
     inopt = G_define_standard_option(G_OPT_F_INPUT);
     inopt = G_define_standard_option(G_OPT_F_INPUT);
-    inopt->gisprompt = "old,file,bin_input";
+    inopt->gisprompt = "old,bin,file";
     
     
     outopt = G_define_standard_option(G_OPT_R_OUTPUT);
     outopt = G_define_standard_option(G_OPT_R_OUTPUT);
 
 

+ 3 - 7
raster/r.li/r.li.cwed/cwed.c

@@ -51,20 +51,16 @@ int main(int argc, char *argv[])
 
 
     raster = G_define_standard_option(G_OPT_R_INPUT);
     raster = G_define_standard_option(G_OPT_R_INPUT);
 
 
-    conf = G_define_option();
+    conf = G_define_standard_option(G_OPT_F_INPUT);
     conf->key = "config";
     conf->key = "config";
     conf->description = _("Configuration file");
     conf->description = _("Configuration file");
-    conf->type = TYPE_STRING;
     conf->required = YES;
     conf->required = YES;
-    conf->gisprompt = "old_file,file,input";
 
 
-    path = G_define_option();
+    path = G_define_standard_option(G_OPT_F_INPUT);
     path->key = "path";
     path->key = "path";
     path->description =
     path->description =
-	"Input file that contains the weight to calculate the index";
-    path->type = TYPE_STRING;
+        _("Name of file that contains the weight to calculate the index");
     path->required = YES;
     path->required = YES;
-    path->gisprompt = "old_file,file,input";
 
 
     output = G_define_standard_option(G_OPT_R_OUTPUT);
     output = G_define_standard_option(G_OPT_R_OUTPUT);
 
 

+ 1 - 3
raster/r.li/r.li.dominance/dominance.c

@@ -46,11 +46,9 @@ int main(int argc, char *argv[])
 
 
     raster = G_define_standard_option(G_OPT_R_INPUT);
     raster = G_define_standard_option(G_OPT_R_INPUT);
 
 
-    conf = G_define_option();
+    conf = G_define_standard_option(G_OPT_F_INPUT);
     conf->key = "config";
     conf->key = "config";
     conf->description = _("Configuration file");
     conf->description = _("Configuration file");
-    conf->gisprompt = "old_file,file,input";
-    conf->type = TYPE_STRING;
     conf->required = YES;
     conf->required = YES;
 
 
     output = G_define_standard_option(G_OPT_R_OUTPUT);
     output = G_define_standard_option(G_OPT_R_OUTPUT);

+ 1 - 3
raster/r.li/r.li.edgedensity/edgedensity.c

@@ -44,12 +44,10 @@ int main(int argc, char *argv[])
 
 
     raster = G_define_standard_option(G_OPT_R_INPUT);
     raster = G_define_standard_option(G_OPT_R_INPUT);
 
 
-    conf = G_define_option();
+    conf = G_define_standard_option(G_OPT_F_INPUT);
     conf->key = "config";
     conf->key = "config";
     conf->description = _("Configuration file");
     conf->description = _("Configuration file");
-    conf->type = TYPE_STRING;
     conf->required = YES;
     conf->required = YES;
-    conf->gisprompt = "old_file,file,input";
 
 
     output = G_define_standard_option(G_OPT_R_OUTPUT);
     output = G_define_standard_option(G_OPT_R_OUTPUT);
 
 

+ 1 - 3
raster/r.li/r.li.mpa/mpa.c

@@ -43,12 +43,10 @@ int main(int argc, char *argv[])
 
 
     raster = G_define_standard_option(G_OPT_R_INPUT);
     raster = G_define_standard_option(G_OPT_R_INPUT);
 
 
-    conf = G_define_option();
+    conf = G_define_standard_option(G_OPT_F_INPUT);
     conf->key = "config";
     conf->key = "config";
     conf->description = _("Configuration file");
     conf->description = _("Configuration file");
-    conf->type = TYPE_STRING;
     conf->required = YES;
     conf->required = YES;
-    conf->gisprompt = "old_file,file,input";
 
 
     output = G_define_standard_option(G_OPT_R_OUTPUT);
     output = G_define_standard_option(G_OPT_R_OUTPUT);
 
 

+ 1 - 3
raster/r.li/r.li.mps/mps.c

@@ -44,12 +44,10 @@ int main(int argc, char *argv[])
 
 
     raster = G_define_standard_option(G_OPT_R_INPUT);
     raster = G_define_standard_option(G_OPT_R_INPUT);
 
 
-    conf = G_define_option();
+    conf = G_define_standard_option(G_OPT_F_INPUT);
     conf->key = "config";
     conf->key = "config";
     conf->description = _("Configuration file");
     conf->description = _("Configuration file");
-    conf->type = TYPE_STRING;
     conf->required = YES;
     conf->required = YES;
-    conf->gisprompt = "old_file,file,input";
 
 
     output = G_define_standard_option(G_OPT_R_OUTPUT);
     output = G_define_standard_option(G_OPT_R_OUTPUT);
 
 

+ 1 - 3
raster/r.li/r.li.padcv/padcv.c

@@ -43,11 +43,9 @@ int main(int argc, char *argv[])
     /* define options */
     /* define options */
     raster = G_define_standard_option(G_OPT_R_INPUT);
     raster = G_define_standard_option(G_OPT_R_INPUT);
 
 
-    conf = G_define_option();
+    conf = G_define_standard_option(G_OPT_F_INPUT);
     conf->key = "config";
     conf->key = "config";
     conf->description = _("Configuration file");
     conf->description = _("Configuration file");
-    conf->gisprompt = "old_file,file,input";
-    conf->type = TYPE_STRING;
     conf->required = YES;
     conf->required = YES;
 
 
     output = G_define_standard_option(G_OPT_R_OUTPUT);
     output = G_define_standard_option(G_OPT_R_OUTPUT);

+ 1 - 3
raster/r.li/r.li.padrange/padrange.c

@@ -43,11 +43,9 @@ int main(int argc, char *argv[])
     /* define options */
     /* define options */
     raster = G_define_standard_option(G_OPT_R_INPUT);
     raster = G_define_standard_option(G_OPT_R_INPUT);
 
 
-    conf = G_define_option();
+    conf = G_define_standard_option(G_OPT_F_INPUT);
     conf->key = "config";
     conf->key = "config";
     conf->description = _("Configuration file");
     conf->description = _("Configuration file");
-    conf->gisprompt = "old_file,file,input";
-    conf->type = TYPE_STRING;
     conf->required = YES;
     conf->required = YES;
 
 
     output = G_define_standard_option(G_OPT_R_OUTPUT);
     output = G_define_standard_option(G_OPT_R_OUTPUT);

+ 1 - 3
raster/r.li/r.li.padsd/padsd.c

@@ -41,11 +41,9 @@ int main(int argc, char *argv[])
     /* define options */
     /* define options */
     raster = G_define_standard_option(G_OPT_R_INPUT);
     raster = G_define_standard_option(G_OPT_R_INPUT);
 
 
-    conf = G_define_option();
+    conf = G_define_standard_option(G_OPT_F_INPUT);
     conf->key = "config";
     conf->key = "config";
     conf->description = _("Configuration file");
     conf->description = _("Configuration file");
-    conf->gisprompt = "old_file,file,input";
-    conf->type = TYPE_STRING;
     conf->required = YES;
     conf->required = YES;
 
 
     output = G_define_standard_option(G_OPT_R_OUTPUT);
     output = G_define_standard_option(G_OPT_R_OUTPUT);

+ 1 - 3
raster/r.li/r.li.patchdensity/main.c

@@ -40,11 +40,9 @@ int main(int argc, char *argv[])
 
 
     raster = G_define_standard_option(G_OPT_R_INPUT);
     raster = G_define_standard_option(G_OPT_R_INPUT);
 
 
-    conf = G_define_option();
+    conf = G_define_standard_option(G_OPT_F_INPUT);
     conf->key = "config";
     conf->key = "config";
     conf->description = _("Configuration file");
     conf->description = _("Configuration file");
-    conf->gisprompt = "old_file,file,input";
-    conf->type = TYPE_STRING;
     conf->required = YES;
     conf->required = YES;
 
 
     output = G_define_standard_option(G_OPT_R_OUTPUT);
     output = G_define_standard_option(G_OPT_R_OUTPUT);

+ 1 - 3
raster/r.li/r.li.patchnum/main.c

@@ -41,11 +41,9 @@ int main(int argc, char *argv[])
 
 
     raster = G_define_standard_option(G_OPT_R_INPUT);
     raster = G_define_standard_option(G_OPT_R_INPUT);
 
 
-    conf = G_define_option();
+    conf = G_define_standard_option(G_OPT_F_INPUT);
     conf->key = "config";
     conf->key = "config";
     conf->description = _("Configuration file");
     conf->description = _("Configuration file");
-    conf->gisprompt = "old_file,file,input";
-    conf->type = TYPE_STRING;
     conf->required = YES;
     conf->required = YES;
 
 
     output = G_define_standard_option(G_OPT_R_OUTPUT);
     output = G_define_standard_option(G_OPT_R_OUTPUT);

+ 1 - 3
raster/r.li/r.li.pielou/pielou.c

@@ -63,11 +63,9 @@ int main(int argc, char *argv[])
 
 
     raster = G_define_standard_option(G_OPT_R_INPUT);
     raster = G_define_standard_option(G_OPT_R_INPUT);
 
 
-    conf = G_define_option();
+    conf = G_define_standard_option(G_OPT_F_INPUT);
     conf->key = "config";
     conf->key = "config";
     conf->description = _("Configuration file");
     conf->description = _("Configuration file");
-    conf->gisprompt = "old_file,file,input";
-    conf->type = TYPE_STRING;
     conf->required = YES;
     conf->required = YES;
 
 
     output = G_define_standard_option(G_OPT_R_OUTPUT);
     output = G_define_standard_option(G_OPT_R_OUTPUT);

+ 1 - 3
raster/r.li/r.li.renyi/renyi.c

@@ -50,11 +50,9 @@ int main(int argc, char *argv[])
 
 
     raster = G_define_standard_option(G_OPT_R_INPUT);
     raster = G_define_standard_option(G_OPT_R_INPUT);
 
 
-    conf = G_define_option();
+    conf = G_define_standard_option(G_OPT_F_INPUT);
     conf->key = "config";
     conf->key = "config";
     conf->description = _("Configuration file");
     conf->description = _("Configuration file");
-    conf->gisprompt = "old_file,file,input";
-    conf->type = TYPE_STRING;
     conf->required = YES;
     conf->required = YES;
 
 
     alpha = G_define_option();
     alpha = G_define_option();

+ 1 - 3
raster/r.li/r.li.richness/richness.c

@@ -44,11 +44,9 @@ int main(int argc, char *argv[])
 
 
     raster = G_define_standard_option(G_OPT_R_INPUT);
     raster = G_define_standard_option(G_OPT_R_INPUT);
 
 
-    conf = G_define_option();
+    conf = G_define_standard_option(G_OPT_F_INPUT);
     conf->key = "config";
     conf->key = "config";
     conf->description = _("Configuration file");
     conf->description = _("Configuration file");
-    conf->type = TYPE_STRING;
-    conf->gisprompt = "old_file,file,input";
     conf->required = YES;
     conf->required = YES;
 
 
     output = G_define_standard_option(G_OPT_R_OUTPUT);
     output = G_define_standard_option(G_OPT_R_OUTPUT);

+ 1 - 3
raster/r.li/r.li.shannon/shannon.c

@@ -43,11 +43,9 @@ int main(int argc, char *argv[])
 
 
     raster = G_define_standard_option(G_OPT_R_INPUT);
     raster = G_define_standard_option(G_OPT_R_INPUT);
 
 
-    conf = G_define_option();
+    conf = G_define_standard_option(G_OPT_F_INPUT);
     conf->key = "config";
     conf->key = "config";
     conf->description = _("Configuration file");
     conf->description = _("Configuration file");
-    conf->gisprompt = "old_file,file,input";
-    conf->type = TYPE_STRING;
     conf->required = YES;
     conf->required = YES;
 
 
     output = G_define_standard_option(G_OPT_R_OUTPUT);
     output = G_define_standard_option(G_OPT_R_OUTPUT);

+ 1 - 3
raster/r.li/r.li.shape/main.c

@@ -39,11 +39,9 @@ int main(int argc, char *argv[])
 
 
     raster = G_define_standard_option(G_OPT_R_INPUT);
     raster = G_define_standard_option(G_OPT_R_INPUT);
 
 
-    conf = G_define_option();
+    conf = G_define_standard_option(G_OPT_F_INPUT);
     conf->key = "config";
     conf->key = "config";
     conf->description = _("Configuration file");
     conf->description = _("Configuration file");
-    conf->gisprompt = "old_file,file,input";
-    conf->type = TYPE_STRING;
     conf->required = YES;
     conf->required = YES;
 
 
     output = G_define_standard_option(G_OPT_R_OUTPUT);
     output = G_define_standard_option(G_OPT_R_OUTPUT);

+ 1 - 3
raster/r.li/r.li.simpson/simpson.c

@@ -44,11 +44,9 @@ int main(int argc, char *argv[])
 
 
     raster = G_define_standard_option(G_OPT_R_INPUT);
     raster = G_define_standard_option(G_OPT_R_INPUT);
 
 
-    conf = G_define_option();
+    conf = G_define_standard_option(G_OPT_F_INPUT);
     conf->key = "config";
     conf->key = "config";
     conf->description = _("Configuration file");
     conf->description = _("Configuration file");
-    conf->type = TYPE_STRING;
-    conf->gisprompt = "old_file,file,input";
     conf->required = YES;
     conf->required = YES;
 
 
     output = G_define_standard_option(G_OPT_R_OUTPUT);
     output = G_define_standard_option(G_OPT_R_OUTPUT);

+ 1 - 2
raster/r.out.arc/main.c

@@ -66,9 +66,8 @@ int main(int argc, char *argv[])
     parm.map = G_define_standard_option(G_OPT_R_INPUT);
     parm.map = G_define_standard_option(G_OPT_R_INPUT);
 
 
     parm.output = G_define_standard_option(G_OPT_R_OUTPUT);
     parm.output = G_define_standard_option(G_OPT_R_OUTPUT);
-    parm.output->gisprompt = "new_file,file,output";
     parm.output->description =
     parm.output->description =
-	_("Name of an output ARC-GRID map (use out=- for stdout)");
+	_("Name for output ARC-GRID file (use out=- for stdout)");
 
 
     parm.dp = G_define_option();
     parm.dp = G_define_option();
     parm.dp->key = "dp";
     parm.dp->key = "dp";

+ 1 - 4
raster/r.out.ascii/main.c

@@ -70,11 +70,8 @@ int main(int argc, char *argv[])
     parm.map->gisprompt = "old,cell,raster";
     parm.map->gisprompt = "old,cell,raster";
     parm.map->description = _("Name of an existing raster map");
     parm.map->description = _("Name of an existing raster map");
 
 
-    parm.output = G_define_option();
-    parm.output->key = "output";
-    parm.output->type = TYPE_STRING;
+    parm.output = G_define_standard_option(G_OPT_F_OUTPUT);
     parm.output->required = NO;
     parm.output->required = NO;
-    parm.output->gisprompt = "new_file,file,output";
     parm.output->description =
     parm.output->description =
 	_("Name for output ASCII grid map (use out=- for stdout)");
 	_("Name for output ASCII grid map (use out=- for stdout)");
 
 

+ 3 - 5
raster/r.out.mat/main.c

@@ -67,12 +67,10 @@ int main(int argc, char *argv[])
 
 
     inputfile = G_define_standard_option(G_OPT_R_INPUT);
     inputfile = G_define_standard_option(G_OPT_R_INPUT);
 
 
-    outputfile = G_define_option();
-    outputfile->key = "output";
-    outputfile->type = TYPE_STRING;
+    outputfile = G_define_standard_option(G_OPT_F_OUTPUT);
     outputfile->required = YES;
     outputfile->required = YES;
-    outputfile->gisprompt = "new_file,file,output";
-    outputfile->description = _("Name for the output binary MAT-File");
+    outputfile->gisprompt = "new,bin,file";
+    outputfile->description = _("Name for output binary MAT file");
 
 
     if (G_parser(argc, argv))
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);
 	exit(EXIT_FAILURE);

+ 3 - 5
raster/r.out.tiff/main.c

@@ -95,12 +95,10 @@ int main(int argc, char *argv[])
 
 
     inopt = G_define_standard_option(G_OPT_R_INPUT);
     inopt = G_define_standard_option(G_OPT_R_INPUT);
 
 
-    outopt = G_define_option();
-    outopt->key = "output";
-    outopt->type = TYPE_STRING;
+    outopt = G_define_standard_option(G_OPT_F_OUTPUT);
     outopt->required = YES;
     outopt->required = YES;
-    outopt->gisprompt = "new_file,tiff,tiff";
-    outopt->description = _("Name for new TIFF file");
+    outopt->gisprompt = "new,bin,file";
+    outopt->description = _("Name for output TIFF file");
 
 
     compopt = G_define_option();
     compopt = G_define_option();
     compopt->key = "compression";
     compopt->key = "compression";

+ 2 - 5
raster/r.out.vrml/main.c

@@ -71,12 +71,9 @@ int main(int argc, char *argv[])
     exag_opt->answer = "1.0";
     exag_opt->answer = "1.0";
     exag_opt->description = _("Vertical exaggeration");
     exag_opt->description = _("Vertical exaggeration");
 
 
-    out = G_define_option();
-    out->key = "output";
-    out->type = TYPE_STRING;
+    out = G_define_standard_option(G_OPT_F_OUTPUT);
     out->required = YES;
     out->required = YES;
-    out->gisprompt = "new_file,file,output";
-    out->description = _("Name for new VRML file");
+    out->description = _("Name for output VRML file");
 
 
     if (G_parser(argc, argv))
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);
 	exit(EXIT_FAILURE);

+ 3 - 11
raster/r.out.vtk/parameters.c

@@ -33,21 +33,13 @@ void set_params()
     param.input->description =
     param.input->description =
         _("Raster map(s) to be converted to VTK-ASCII data format");
         _("Raster map(s) to be converted to VTK-ASCII data format");
 
 
-    param.output = G_define_option();
-    param.output->key = "output";
-    param.output->type = TYPE_STRING;
-    param.output->gisprompt = "new_file,file,output";
+    param.output = G_define_standard_option(G_OPT_F_OUTPUT);
     param.output->required = NO;
     param.output->required = NO;
     param.output->description = _("Name for VTK-ASCII output file");
     param.output->description = _("Name for VTK-ASCII output file");
 
 
-    param.elevationmap = G_define_option();
-    param.elevationmap->key = "elevation";
-    param.elevationmap->type = TYPE_STRING;
+    param.elevationmap = G_define_standard_option(G_OPT_R_ELEV);
     param.elevationmap->required = NO;
     param.elevationmap->required = NO;
-    param.elevationmap->gisprompt = "old,cell,raster";
-    param.elevationmap->multiple = NO;
-    param.elevationmap->description = _("Elevation raster map");
-
+    
     param.null_val = G_define_option();
     param.null_val = G_define_option();
     param.null_val->key = "null";
     param.null_val->key = "null";
     param.null_val->type = TYPE_DOUBLE;
     param.null_val->type = TYPE_DOUBLE;

+ 1 - 4
raster/r.profile/main.c

@@ -54,12 +54,9 @@ int main(int argc, char *argv[])
 
 
     parm.opt1 = G_define_standard_option(G_OPT_R_INPUT);
     parm.opt1 = G_define_standard_option(G_OPT_R_INPUT);
 
 
-    parm.output = G_define_option();
-    parm.output->key = "output";
-    parm.output->type = TYPE_STRING;
+    parm.output = G_define_standard_option(G_OPT_F_OUTPUT);
     parm.output->required = NO;
     parm.output->required = NO;
     parm.output->answer = "-";
     parm.output->answer = "-";
-    parm.output->gisprompt = "new_file,file,output";
     parm.output->description =
     parm.output->description =
 	_("Name of file for output (use output=- for stdout)");
 	_("Name of file for output (use output=- for stdout)");
 
 

+ 2 - 6
raster3d/r3.in.ascii/main.c

@@ -78,13 +78,9 @@ static paramType param;
 
 
 static void setParams()
 static void setParams()
 {
 {
-    param.input = G_define_option();
-    param.input->key = "input";
-    param.input->type = TYPE_STRING;
+    param.input = G_define_standard_option(G_OPT_F_INPUT);
     param.input->required = YES;
     param.input->required = YES;
-    param.input->key_desc = "name";
-    param.input->gisprompt = "old_file,file,input";
-    param.input->description = _("ASCII raster map to be imported");
+    param.input->description = _("Name of input file to be imported");
 
 
     param.output = G_define_standard_option(G_OPT_R3_OUTPUT);
     param.output = G_define_standard_option(G_OPT_R3_OUTPUT);
 
 

+ 1 - 1
raster3d/r3.in.bin/main.c

@@ -250,7 +250,7 @@ int main(int argc, char *argv[]) {
 
 
 	parm.input = G_define_standard_option(G_OPT_F_INPUT);
 	parm.input = G_define_standard_option(G_OPT_F_INPUT);
 	parm.input->description = _("Name of binary 3D raster file to be imported");
 	parm.input->description = _("Name of binary 3D raster file to be imported");
-	parm.input->gisprompt = "old,file,bin_input";
+	parm.input->gisprompt = "old,bin,file";
 
 
 	parm.output = G_define_standard_option(G_OPT_R3_OUTPUT);
 	parm.output = G_define_standard_option(G_OPT_R3_OUTPUT);
 
 

+ 2 - 4
raster3d/r3.mkdspf/main.c

@@ -89,12 +89,10 @@ int main(int argc, char *argv[])
     /* should still find the DIRECTORY */
     /* should still find the DIRECTORY */
     name->description = _("Name of an existing 3d raster map");
     name->description = _("Name of an existing 3d raster map");
 
 
-    out = G_define_option();
+    out = G_define_standard_option(G_OPT_F_OUTPUT);
     out->key = "dspf";
     out->key = "dspf";
-    out->type = TYPE_STRING;
     out->required = YES;
     out->required = YES;
-    out->gisprompt = "new_file,file,output";
-    out->description = _("Name of output display file");
+    out->description = _("Name for output display file");
 
 
     levels = G_define_option();
     levels = G_define_option();
     levels->key = "levels";
     levels->key = "levels";

+ 1 - 4
raster3d/r3.out.ascii/main.c

@@ -80,10 +80,7 @@ void setParams()
     param.input->multiple = NO;
     param.input->multiple = NO;
     param.input->description = _("3D raster map to be converted to ASCII");
     param.input->description = _("3D raster map to be converted to ASCII");
 
 
-    param.output = G_define_option();
-    param.output->key = "output";
-    param.output->type = TYPE_STRING;
-    param.output->gisprompt = "new_file,file,output";
+    param.output = G_define_standard_option(G_OPT_F_OUTPUT);
     param.output->required = NO;
     param.output->required = NO;
     param.output->description = _("Name for ASCII output file");
     param.output->description = _("Name for ASCII output file");
 
 

+ 1 - 4
raster3d/r3.out.v5d/main.c

@@ -71,10 +71,7 @@ void setParams()
     param.input->description =
     param.input->description =
 	_("3D raster map to be converted to Vis5D (V5D) file");
 	_("3D raster map to be converted to Vis5D (V5D) file");
 
 
-    param.output = G_define_option();
-    param.output->key = "output";
-    param.output->type = TYPE_STRING;
-    param.output->gisprompt = "new_file,file,output";
+    param.output = G_define_standard_option(G_OPT_F_OUTPUT);
     param.output->required = YES;
     param.output->required = YES;
     param.output->description = _("Name for V5D output file");
     param.output->description = _("Name for V5D output file");
 
 

+ 2 - 4
scripts/db.in.ogr/db.in.ogr.py

@@ -20,11 +20,9 @@
 #%  keywords: attribute table
 #%  keywords: attribute table
 #%End
 #%End
 
 
-#%option
+#%option G_OPT_F_INPUT
 #% key: dsn
 #% key: dsn
-#% type: string
-#% key_desc : name
-#% gisprompt: old_file,file,input
+#% gisprompt: old,bin,file
 #% description: Table file to be imported or DB connection string
 #% description: Table file to be imported or DB connection string
 #% required : yes
 #% required : yes
 #%end
 #%end

+ 2 - 4
scripts/db.out.ogr/db.out.ogr.py

@@ -25,11 +25,9 @@
 #% required: yes
 #% required: yes
 #%end
 #%end
 
 
-#%option
+#%option G_OPT_F_INPUT
 #% key: dsn
 #% key: dsn
-#% type: string
-#% key_desc: name
-#% gisprompt: new_file,file,input
+#% gisprompt: old,bin,file
 #% description: Table file to be exported or DB connection string
 #% description: Table file to be exported or DB connection string
 #% required : yes
 #% required : yes
 #%end
 #%end

+ 1 - 2
scripts/r.in.wms/r.in.wms.py

@@ -157,14 +157,13 @@ This program is free software under the GNU General Public License
 #%option G_OPT_F_INPUT
 #%option G_OPT_F_INPUT
 #% key: capfile
 #% key: capfile
 #% required: no
 #% required: no
-#% gisprompt: old,file,bin_input
+#% gisprompt: old,bin,file
 #% description: Capabilities file to load
 #% description: Capabilities file to load
 #%end
 #%end
 
 
 #%option G_OPT_F_OUTPUT
 #%option G_OPT_F_OUTPUT
 #% key: capfile_output
 #% key: capfile_output
 #% required: no
 #% required: no
-#% gisprompt: old,file,bin_input
 #% description: File where capabilities will be saved (only with 'c' flag).
 #% description: File where capabilities will be saved (only with 'c' flag).
 #%end
 #%end
 
 

+ 1 - 1
scripts/r.unpack/r.unpack.py

@@ -21,7 +21,7 @@
 #%end
 #%end
 #%option G_OPT_F_INPUT
 #%option G_OPT_F_INPUT
 #% description: Name of input pack file
 #% description: Name of input pack file
-#% gisprompt: old,file,bin_input
+#% gisprompt: old,bin,file
 #% key_desc: name.pack
 #% key_desc: name.pack
 #%end
 #%end
 #%option G_OPT_R_OUTPUT
 #%option G_OPT_R_OUTPUT

+ 1 - 6
scripts/r3.in.xyz/r3.in.xyz.py

@@ -36,14 +36,9 @@
 #% key: i
 #% key: i
 #% description: Ignore broken lines
 #% description: Ignore broken lines
 #%End
 #%End
-#%Option
-#% key: input
-#% type: string
+#%Option G_OPT_F_INPUT
 #% required: yes
 #% required: yes
-#% multiple: no
-#% key_desc: name
 #% description: ASCII file containing input data
 #% description: ASCII file containing input data
-#% gisprompt: old_file,file,input
 #%End
 #%End
 #%Option
 #%Option
 #% key: output
 #% key: output

+ 1 - 5
scripts/v.pack/v.pack.py

@@ -26,12 +26,8 @@
 #% key_desc: name
 #% key_desc: name
 #% required : yes
 #% required : yes
 #%end
 #%end
-#%option
-#% key: output
-#% type: string
-#% gisprompt: new_file,file,output
+#%option G_OPT_F_OUTPUT
 #% description: Name for output file (default is <input>.pack)
 #% description: Name for output file (default is <input>.pack)
-#% key_desc: path
 #% required : no
 #% required : no
 #%end
 #%end
 #%flag
 #%flag

+ 2 - 5
scripts/v.unpack/v.unpack.py

@@ -18,12 +18,9 @@
 #% description: Unpacks a vector map packed with r.pack.
 #% description: Unpacks a vector map packed with r.pack.
 #% keywords: vector, import, copying
 #% keywords: vector, import, copying
 #%end
 #%end
-#%option
-#% key: input
-#% type: string
-#% gisprompt: old,file,input
+#%option G_OPT_F_INPUT
+#% gisprompt: old,bin,file
 #% description: Name of input pack file
 #% description: Name of input pack file
-#% key_desc: path
 #% required : yes
 #% required : yes
 #%end
 #%end
 #%option
 #%option

+ 1 - 1
vector/v.db.connect/main.c

@@ -75,7 +75,7 @@ int main(int argc, char **argv)
     
     
     field_opt = G_define_standard_option(G_OPT_V_FIELD);
     field_opt = G_define_standard_option(G_OPT_V_FIELD);
     field_opt->description = _("Format: layer number[/layer name]");
     field_opt->description = _("Format: layer number[/layer name]");
-    field_opt->gisprompt = "new_layer,layer,layer";
+    field_opt->gisprompt = "new,layer,layer";
 
 
     sep_opt = G_define_standard_option(G_OPT_F_SEP);
     sep_opt = G_define_standard_option(G_OPT_F_SEP);
     sep_opt->description = _("Field separator for shell script style output");
     sep_opt->description = _("Field separator for shell script style output");

+ 1 - 1
vector/v.edit/args.c

@@ -20,7 +20,7 @@ int parser(int argc, char *argv[], struct GParams *params,
     params->map->label = _("Name of vector map to edit");
     params->map->label = _("Name of vector map to edit");
 
 
     params->fld = G_define_standard_option(G_OPT_V_FIELD);
     params->fld = G_define_standard_option(G_OPT_V_FIELD);
-    params->fld->gisprompt = "new_layer,layer,layer";
+    params->fld->gisprompt = "old,layer,layer";
     params->fld->guisection = _("Selection");
     params->fld->guisection = _("Selection");
 
 
     params->type = G_define_standard_option(G_OPT_V_TYPE);
     params->type = G_define_standard_option(G_OPT_V_TYPE);

+ 2 - 2
vector/v.net/args.c

@@ -51,14 +51,14 @@ void define_options(struct opt *opt)
 
 
     opt->afield_opt = G_define_standard_option(G_OPT_V_FIELD);
     opt->afield_opt = G_define_standard_option(G_OPT_V_FIELD);
     opt->afield_opt->key = "alayer";
     opt->afield_opt->key = "alayer";
-    opt->afield_opt->gisprompt = "new_layer,layer,layer";
+    opt->afield_opt->gisprompt = "new,layer,layer";
     opt->afield_opt->label = _("Arc layer");
     opt->afield_opt->label = _("Arc layer");
     opt->afield_opt->guisection = _("Arcs");
     opt->afield_opt->guisection = _("Arcs");
 
 
     opt->nfield_opt = G_define_standard_option(G_OPT_V_FIELD);
     opt->nfield_opt = G_define_standard_option(G_OPT_V_FIELD);
     opt->nfield_opt->key = "nlayer";
     opt->nfield_opt->key = "nlayer";
     opt->nfield_opt->answer = "2";
     opt->nfield_opt->answer = "2";
-    opt->nfield_opt->gisprompt = "new_layer,layer,layer";
+    opt->nfield_opt->gisprompt = "new,layer,layer";
     opt->nfield_opt->label = _("Node layer");
     opt->nfield_opt->label = _("Node layer");
     opt->nfield_opt->guisection = _("Nodes");
     opt->nfield_opt->guisection = _("Nodes");
 
 

+ 2 - 6
vector/v.out.vtk/main.c

@@ -51,13 +51,9 @@ int main(int argc, char *argv[])
 
 
     input = G_define_standard_option(G_OPT_V_INPUT);
     input = G_define_standard_option(G_OPT_V_INPUT);
 
 
-    output = G_define_option();
-    output->key = "output";
-    output->type = TYPE_STRING;
+    output = G_define_standard_option(G_OPT_F_OUTPUT);
     output->required = NO;
     output->required = NO;
-    output->multiple = NO;
-    output->gisprompt = "new_file,file,output";
-    output->description = _("Path to resulting VTK file");
+    output->description = _("Name for output VTK file");
 
 
     type_opt = G_define_standard_option(G_OPT_V_TYPE);
     type_opt = G_define_standard_option(G_OPT_V_TYPE);
     type_opt->answer = "point,kernel,centroid,line,boundary,area,face";
     type_opt->answer = "point,kernel,centroid,line,boundary,area,face";

+ 2 - 5
visualization/wximgview/main.cpp

@@ -256,13 +256,10 @@ int main(int argc, char **argv)
     G_add_keyword(_("visualization"));
     G_add_keyword(_("visualization"));
     module->description = _("View BMP images from the PNG driver.");
     module->description = _("View BMP images from the PNG driver.");
 
 
-    opt.image = G_define_option();
+    opt.image = G_define_standard_option(G_OPT_F_OUTPUT);
     opt.image->key = "image";
     opt.image->key = "image";
-    opt.image->type = TYPE_STRING;
     opt.image->required = YES;
     opt.image->required = YES;
-    opt.image->multiple = NO;
-    opt.image->gisprompt = "old_file,file,input";
-    opt.image->description = _("Image file");
+    opt.image->description = _("Name for output image file");
 
 
     opt.percent = G_define_option();
     opt.percent = G_define_option();
     opt.percent->key = "percent";
     opt.percent->key = "percent";

+ 2 - 5
visualization/ximgview/main.c

@@ -294,13 +294,10 @@ int main(int argc, char **argv)
     G_add_keyword(_("visualization"));
     G_add_keyword(_("visualization"));
     module->description = _("View BMP images from the PNG driver.");
     module->description = _("View BMP images from the PNG driver.");
 
 
-    opt.image = G_define_option();
+    opt.image = G_define_standard_option(G_OPT_F_OUTPUT);
     opt.image->key = "image";
     opt.image->key = "image";
-    opt.image->type = TYPE_STRING;
     opt.image->required = YES;
     opt.image->required = YES;
-    opt.image->multiple = NO;
-    opt.image->gisprompt = "old_file,file,input";
-    opt.image->description = _("Image file");
+    opt.image->description = _("Name for output image file");
 
 
     opt.percent = G_define_option();
     opt.percent = G_define_option();
     opt.percent->key = "percent";
     opt.percent->key = "percent";