From 89dc4506978dc05f3c32cc25877b92fb805efbae Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Mon, 14 Dec 2009 15:40:51 +0000
Subject: [PATCH] just parse file with '-' command line option; use '-check' to
 check mesh

---
 Common/CommandLine.cpp | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/Common/CommandLine.cpp b/Common/CommandLine.cpp
index 608403dd74..ff3f2af54c 100644
--- a/Common/CommandLine.cpp
+++ b/Common/CommandLine.cpp
@@ -126,7 +126,11 @@ void GetOptions(int argc, char *argv[])
 
     if(argv[i][0] == '-') {
 
-      if(!strcmp(argv[i] + 1, "socket")) {
+      if(!strcmp(argv[i] + 1, "")) {
+        CTX::instance()->batch = -99;
+        i++;
+      }
+      else if(!strcmp(argv[i] + 1, "socket")) {
         i++;        
         if(argv[i])
           Msg::InitClient(argv[i++]);
@@ -134,7 +138,7 @@ void GetOptions(int argc, char *argv[])
           Msg::Fatal("Missing string");
         CTX::instance()->batch = -3;
       }
-      else if(!strcmp(argv[i] + 1, "")) {
+      else if(!strcmp(argv[i] + 1, "check")) {
         CTX::instance()->batch = -2;
         i++;
       }
-- 
GitLab