Browse Source

d.info: cosmetics in module description

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@50330 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 năm trước cách đây
mục cha
commit
d80451716f
1 tập tin đã thay đổi với 7 bổ sung6 xóa
  1. 7 6
      display/d.info/main.c

+ 7 - 6
display/d.info/main.c

@@ -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 @@ int main(int argc, char *argv[])
 
     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 @@ int main(int argc, char *argv[])
 
     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 @@ int main(int argc, char *argv[])
     
     D_close_driver();
 
-    return EXIT_SUCCESS;
+    exit(EXIT_SUCCESS);
 }