|
@@ -49,17 +49,13 @@ int main(int argc, char **argv)
|
|
|
G_gisinit(argv[0]);
|
|
|
|
|
|
module = G_define_module();
|
|
|
- module->keywords = _("display");
|
|
|
+ module->keywords = _("display, raster");
|
|
|
module->description =
|
|
|
_("Displays and overlays raster map layers "
|
|
|
"in the active display frame on the graphics monitor.");
|
|
|
|
|
|
/* set up command line */
|
|
|
- map = G_define_option();
|
|
|
- map->key = "map";
|
|
|
- map->type = TYPE_STRING;
|
|
|
- map->required = YES;
|
|
|
- map->gisprompt = "old,cell,raster";
|
|
|
+ map = G_define_standard_option(G_OPT_R_MAP);
|
|
|
map->description = _("Raster map to be displayed");
|
|
|
|
|
|
catlist = G_define_option();
|
|
@@ -69,6 +65,7 @@ int main(int argc, char **argv)
|
|
|
catlist->required = NO;
|
|
|
catlist->multiple = YES;
|
|
|
catlist->description = _("List of categories to be displayed (INT maps)");
|
|
|
+ catlist->guisection = _("Query");
|
|
|
|
|
|
vallist = G_define_option();
|
|
|
vallist->key = "vallist";
|
|
@@ -77,13 +74,13 @@ int main(int argc, char **argv)
|
|
|
vallist->required = NO;
|
|
|
vallist->multiple = YES;
|
|
|
vallist->description = _("List of values to be displayed (FP maps)");
|
|
|
+ vallist->guisection = _("Query");
|
|
|
|
|
|
bg = G_define_option();
|
|
|
bg->key = "bg";
|
|
|
bg->key_desc = "color";
|
|
|
- bg->type = TYPE_STRING;
|
|
|
+ bg->gisprompt = GISPROMPT_COLOR;
|
|
|
bg->required = NO;
|
|
|
- bg->options = color_list();
|
|
|
bg->description = _("Background color (for null)");
|
|
|
|
|
|
flag_n = G_define_flag();
|
|
@@ -93,6 +90,7 @@ int main(int argc, char **argv)
|
|
|
flag_i = G_define_flag();
|
|
|
flag_i->key = 'i';
|
|
|
flag_i->description = _("Invert catlist");
|
|
|
+ flag_i->guisection = _("Query");
|
|
|
|
|
|
if (G_parser(argc, argv))
|
|
|
exit(EXIT_FAILURE);
|