[GRASS-SVN] r64419 - grass/trunk/display/d.info
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Feb 3 04:52:52 PST 2015
Author: martinl
Date: 2015-02-03 04:52:52 -0800 (Tue, 03 Feb 2015)
New Revision: 64419
Modified:
grass/trunk/display/d.info/main.c
Log:
d.info: use G_option_required()
Modified: grass/trunk/display/d.info/main.c
===================================================================
--- grass/trunk/display/d.info/main.c 2015-02-03 12:46:50 UTC (rev 64418)
+++ grass/trunk/display/d.info/main.c 2015-02-03 12:52:52 UTC (rev 64419)
@@ -4,7 +4,7 @@
* MODULE: d.info
* AUTHOR(S): Glynn Clements
* PURPOSE: Display information about the active display monitor
- * COPYRIGHT: (C) 2004, 2012 by the GRASS Development Team
+ * COPYRIGHT: (C) 2004-2015 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
@@ -58,14 +58,11 @@
gflag->description =
_("Display geographic coordinates and resolution of entire screen");
+ G_option_required(rflag, dflag, fflag, bflag, gflag, NULL);
+
if (G_parser(argc, argv))
exit(EXIT_FAILURE);
- if (!rflag->answer && !dflag->answer &&
- !fflag->answer && !bflag->answer && !gflag->answer) {
- G_fatal_error(_("No flag given"));
- }
-
D_open_driver();
if (rflag->answer || dflag->answer || fflag->answer)
More information about the grass-commit
mailing list