Mercurial > mplayer.hg
comparison cfgparser.c @ 2623:0d8f8d313f9c
fixed fault with --help
author | alex |
---|---|
date | Fri, 02 Nov 2001 02:21:57 +0000 |
parents | 169d97f8aeaf |
children | 64844fccf623 |
comparison
equal
deleted
inserted
replaced
2622:fb7220c79b69 | 2623:0d8f8d313f9c |
---|---|
519 ++recursion_depth; | 519 ++recursion_depth; |
520 | 520 |
521 for (i = 1; i < argc; i++) { | 521 for (i = 1; i < argc; i++) { |
522 next: | 522 next: |
523 opt = argv[i]; | 523 opt = argv[i]; |
524 if ((*opt == '-') && (*(opt+1) == '-')) | 524 /* check for -- (no more options id.) except --help ! */ |
525 if ((*opt == '-') && (*(opt+1) == '-') && (*(opt+2) != 'h')) | |
525 { | 526 { |
526 no_more_opts = 1; | 527 no_more_opts = 1; |
527 // printf("no more opts! %d\n",i); | 528 // printf("no more opts! %d\n",i); |
528 i++; | 529 i++; |
529 goto next; | 530 goto next; |