[GRASS-SVN] r51942 - grass/trunk/db/db.select
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jun 2 10:12:25 PDT 2012
Author: martinl
Date: 2012-06-02 10:12:24 -0700 (Sat, 02 Jun 2012)
New Revision: 51942
Modified:
grass/trunk/db/db.select/main.c
Log:
db.select: option cosmetics
Modified: grass/trunk/db/db.select/main.c
===================================================================
--- grass/trunk/db/db.select/main.c 2012-06-02 17:03:49 UTC (rev 51941)
+++ grass/trunk/db/db.select/main.c 2012-06-02 17:12:24 UTC (rev 51942)
@@ -196,22 +196,24 @@
input = G_define_standard_option(G_OPT_F_INPUT);
input->required = NO;
- input->description = _("Name of file with SQL select statement(s)");
+ input->label = _("Name of file containing SQL select statement(s)");
+ input->description = _("One SQL statement per line");
input->guisection = _("Query");
table = G_define_standard_option(G_OPT_DB_TABLE);
+ table->description = _("Name of table to query");
table->guisection = _("Query");
- database = G_define_standard_option(G_OPT_DB_DATABASE);
- if ((db = db_get_default_database_name()))
- database->answer = (char *) db;
- database->guisection = _("Connection");
-
driver = G_define_standard_option(G_OPT_DB_DRIVER);
driver->options = db_list_drivers();
if ((drv = db_get_default_driver_name()))
driver->answer = (char *) drv;
driver->guisection = _("Connection");
+
+ database = G_define_standard_option(G_OPT_DB_DATABASE);
+ if ((db = db_get_default_database_name()))
+ database->answer = (char *) db;
+ database->guisection = _("Connection");
fs = G_define_standard_option(G_OPT_F_SEP);
fs->description = _("Output field separator");
More information about the grass-commit
mailing list