# HG changeset patch # User alex # Date 1004667717 0 # Node ID 0d8f8d313f9c3d55bd335e544501d32a093aa3ff # Parent fb7220c79b69ee1d171fcf8eec6f760ad7fe3fb0 fixed fault with --help diff -r fb7220c79b69 -r 0d8f8d313f9c cfgparser.c --- a/cfgparser.c Fri Nov 02 02:08:00 2001 +0000 +++ b/cfgparser.c Fri Nov 02 02:21:57 2001 +0000 @@ -521,7 +521,8 @@ for (i = 1; i < argc; i++) { next: opt = argv[i]; - if ((*opt == '-') && (*(opt+1) == '-')) + /* check for -- (no more options id.) except --help ! */ + if ((*opt == '-') && (*(opt+1) == '-') && (*(opt+2) != 'h')) { no_more_opts = 1; // printf("no more opts! %d\n",i);