Mercurial > mplayer.hg
changeset 2623:0d8f8d313f9c
fixed fault with --help
author | alex |
---|---|
date | Fri, 02 Nov 2001 02:21:57 +0000 |
parents | fb7220c79b69 |
children | 64844fccf623 |
files | cfgparser.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);