Browse Source

d.vect: use G_OPT_M_COLR

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@47553 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 14 years ago
parent
commit
4b8ffb66d1
1 changed files with 2 additions and 5 deletions
  1. 2 5
      display/d.vect/main.c

+ 2 - 5
display/d.vect/main.c

@@ -174,12 +174,9 @@ int main(int argc, char **argv)
     rgbcol_opt->guisection = _("Colors");
     rgbcol_opt->description = _("Name of color definition column (for use with -a flag)");
     
-    zcol_opt = G_define_option();
+    zcol_opt = G_define_standard_option(G_OPT_M_COLR);
     zcol_opt->key = "zcolor";
-    zcol_opt->key_desc = "style";
-    zcol_opt->type = TYPE_STRING;
-    zcol_opt->required = NO;
-    zcol_opt->description = _("Type of color table (for use with -z flag)");
+    zcol_opt->description = _("Name of color table (for use with -z flag)");
     zcol_opt->answer = "terrain";
     zcol_opt->guisection = _("Colors");