From d9bef6dd80e5b958af8b78dbf2e151379c8f2915 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Thu, 5 Feb 2004 16:57:43 +0000
Subject: [PATCH] better -convert

---
 Common/CommandLine.cpp | 7 +++----
 doc/VERSIONS           | 4 ++--
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/Common/CommandLine.cpp b/Common/CommandLine.cpp
index f807400152..ab55b4b5ae 100644
--- a/Common/CommandLine.cpp
+++ b/Common/CommandLine.cpp
@@ -1,4 +1,4 @@
-// $Id: CommandLine.cpp,v 1.26 2004-02-05 16:53:58 geuzaine Exp $
+// $Id: CommandLine.cpp,v 1.27 2004-02-05 16:57:43 geuzaine Exp $
 //
 // Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
 //
@@ -93,7 +93,7 @@ void Print_Usage(char *name){
   Msg(DIRECT, "  -link int             select link mode between views (default: 0)");
   Msg(DIRECT, "  -smoothview           smooth views");
   Msg(DIRECT, "  -combine              combine input views into multi time step ones");
-  Msg(DIRECT, "  -convert file file    convert an ascii view into a binary one");
+  Msg(DIRECT, "  -convert file file    convert all views in a file into binary views");
   Msg(DIRECT, "Display options:");    
   Msg(DIRECT, "  -nodb                 disable double buffering");
   Msg(DIRECT, "  -fontsize int         specify the font size for the GUI (default: 12)");
@@ -270,8 +270,7 @@ void Get_Options(int argc, char *argv[], int *nbfiles)
                       argv[i + 1], 1, j ? 1 : 0);
         }
         else
-          fprintf(stderr, "Usage: %s -convert ViewFile BinaryViewFile\n",
-                  argv[0]);
+          fprintf(stderr, "Usage: %s -convert file file\n", argv[0]);
         exit(1);
       }
       else if(!strcmp(argv[i] + 1, "old")) {
diff --git a/doc/VERSIONS b/doc/VERSIONS
index f0d83f5d35..da95728153 100644
--- a/doc/VERSIONS
+++ b/doc/VERSIONS
@@ -1,11 +1,11 @@
-$Id: VERSIONS,v 1.182 2004-01-29 22:04:03 geuzaine Exp $
+$Id: VERSIONS,v 1.183 2004-02-05 16:57:43 geuzaine Exp $
 
 New since 1.50: initial support for visualizing mesh partitions;
 integrated version 2.0 of the MSH mesh file format; new option to
 compute post-processing ranges (min/max) per time step; Multiple views
 can now be combined into multi time step ones (e.g. for programs that
 generate data one time step at a time); new syntax: #var[] returns the
-size of the list var[];
+size of the list var[]; enhanced "gmsh -convert";
 
 New in 1.50: small changes to the visibility browser + made visibility
 scriptable (new Show/Hide commands); fixed (rare) crash when deleting
-- 
GitLab