Browse Source

v.colors: throw fatal error if rules from stdin are specified, see https://trac.osgeo.org/grass/ticket/2555 (merge from trunk, https://trac.osgeo.org/grass/changeset/69806)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@69808 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 8 years ago
parent
commit
b8b065444e
1 changed files with 2 additions and 3 deletions
  1. 2 3
      vector/v.colors/main.c

+ 2 - 3
vector/v.colors/main.c

@@ -108,8 +108,7 @@ int main(int argc, char *argv[])
     opt.rules = G_define_standard_option(G_OPT_F_INPUT);
     opt.rules->key = "rules";
     opt.rules->required = NO;
-    opt.rules->label = _("Path to rules file");
-    opt.rules->description = _("\"-\" to read rules from stdin");
+    opt.rules->description = _("Path to rules file");
     opt.rules->guisection = _("Define");
 
     opt.rgbcol = G_define_standard_option(G_OPT_DB_COLUMN);
@@ -232,7 +231,7 @@ int main(int argc, char *argv[])
 
     is_from_stdin = rules && strcmp(rules, "-") == 0;
     if (is_from_stdin)
-        rules = NULL;
+        G_fatal_error(_("Reading rules from standard input is not implemented yet, please provide path to rules file instead."));
 
     mapset = G_find_vector(name, "");
     if (!mapset)