From 3c18663c3f6a80a510cbf915d170e1a17d082cf9 Mon Sep 17 00:00:00 2001 From: steve Date: Fri, 7 Feb 2003 02:45:05 +0000 Subject: [PATCH] Mke getopt ignore options after the file name. --- vvp/main.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vvp/main.cc b/vvp/main.cc index ee88f7c03..69c65a143 100644 --- a/vvp/main.cc +++ b/vvp/main.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: main.cc,v 1.33 2003/01/18 23:55:35 steve Exp $" +#ident "$Id: main.cc,v 1.34 2003/02/07 02:45:05 steve Exp $" #endif # include "config.h" @@ -143,7 +143,7 @@ int main(int argc, char*argv[]) } #endif - while ((opt = getopt(argc, argv, "dhl:M:m:v")) != EOF) switch (opt) { + while ((opt = getopt(argc, argv, "+dhl:M:m:v")) != EOF) switch (opt) { case 'd': debug_flag = true; break; @@ -297,6 +297,9 @@ int main(int argc, char*argv[]) /* * $Log: main.cc,v $ + * Revision 1.34 2003/02/07 02:45:05 steve + * Mke getopt ignore options after the file name. + * * Revision 1.33 2003/01/18 23:55:35 steve * Add a means to clear the module search path. *