[GRASS-SVN] r58260 - grass/trunk/vector/v.category

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 20 12:22:14 PST 2013


Author: mmetz
Date: 2013-11-20 12:22:14 -0800 (Wed, 20 Nov 2013)
New Revision: 58260

Modified:
   grass/trunk/vector/v.category/main.c
Log:
v.category: improve r58202

Modified: grass/trunk/vector/v.category/main.c
===================================================================
--- grass/trunk/vector/v.category/main.c	2013-11-20 20:08:00 UTC (rev 58259)
+++ grass/trunk/vector/v.category/main.c	2013-11-20 20:22:14 UTC (rev 58260)
@@ -66,7 +66,7 @@
     struct GModule *module;
     struct Option *in_opt, *out_opt, *option_opt, *type_opt;
     struct Option *cat_opt, *field_opt, *step_opt, *id_opt;
-    struct Flag *shell, *nodb;
+    struct Flag *shell, *notab;
     FREPORT **freps;
     int nfreps, rtype, fld;
     char *desc;
@@ -138,10 +138,8 @@
     shell->label = _("Shell script style, currently only for report");
     shell->description = _("Format: layer type count min max");
     
-    nodb = G_define_flag();
-    nodb->key = 'n';
-    nodb->label = _("Avoid to copy the attribute table");
-    nodb->description = _("Avoid to copy the attribute table in the database");
+    notab = G_define_standard_flag(G_FLG_V_TABLE);
+    notab->description = _("Do not copy attribute table(s)");
 
     G_gisinit(argv[0]);
 
@@ -763,7 +761,7 @@
 
     if (option == O_ADD || option == O_DEL || option == O_CHFIELD ||
         option == O_SUM || option == O_TRANS){
-        if (!nodb->answer){
+        if (!notab->answer){
 	    G_message(_("Copying attribute table(s)..."));
             if (Vect_copy_tables(&In, &Out, 0))
                 G_warning(_("Failed to copy attribute table to output map"));



More information about the grass-commit mailing list