[GRASS-SVN] r50330 - grass/trunk/display/d.info
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jan 20 13:56:50 EST 2012
Author: martinl
Date: 2012-01-20 10:56:50 -0800 (Fri, 20 Jan 2012)
New Revision: 50330
Modified:
grass/trunk/display/d.info/main.c
Log:
d.info: cosmetics in module description
Modified: grass/trunk/display/d.info/main.c
===================================================================
--- grass/trunk/display/d.info/main.c 2012-01-20 18:51:42 UTC (rev 50329)
+++ grass/trunk/display/d.info/main.c 2012-01-20 18:56:50 UTC (rev 50330)
@@ -4,7 +4,7 @@
* MODULE: d.info
* AUTHOR(S): Glynn Clements
* PURPOSE: Display information about the active display monitor
- * COPYRIGHT: (C) 2004 by the GRASS Development Team
+ * COPYRIGHT: (C) 2004, 2012 by the GRASS Development Team
*
* This program is free software under the GNU General Public
* License (>=v2). Read the file COPYING that comes with GRASS
@@ -29,9 +29,11 @@
module = G_define_module();
G_add_keyword(_("display"));
- G_add_keyword(_("metadata"));
+ G_add_keyword(_("monitors"));
+ module->label =
+ _("Displays information about the active display monitor.");
module->description =
- _("Display information about the active display monitor");
+ _("Display monitors are maintained by d.mon.");
rflag = G_define_flag();
rflag->key = 'r';
@@ -60,8 +62,7 @@
if (!rflag->answer && !dflag->answer &&
!fflag->answer && !bflag->answer && !gflag->answer) {
- G_usage();
- exit(EXIT_FAILURE);
+ G_fatal_error(_("No flag given"));
}
if (D_open_driver() != 0)
@@ -112,5 +113,5 @@
D_close_driver();
- return EXIT_SUCCESS;
+ exit(EXIT_SUCCESS);
}
More information about the grass-commit
mailing list