浏览代码

G_open_option_file(): multiple files not supported

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@60517 15284696-431f-4ddb-bdfa-cd5b030d7da7
Huidae Cho 11 年之前
父节点
当前提交
f1c76f6568
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      lib/gis/parser.c

+ 2 - 0
lib/gis/parser.c

@@ -1506,6 +1506,8 @@ FILE *G_open_option_file(const struct Option *option)
 
 
     if (option->gisprompt == NULL)
     if (option->gisprompt == NULL)
         G_fatal_error(_("Not a file option"));
         G_fatal_error(_("Not a file option"));
+    else if (option->multiple)
+	G_fatal_error(_("Multiple files not supported"));
     else if (strcmp(option->gisprompt, "old,file,file") == 0) {
     else if (strcmp(option->gisprompt, "old,file,file") == 0) {
 	if (stdinout)
 	if (stdinout)
 	    fp = stdin;
 	    fp = stdin;