comparison parser-mecmd.c @ 15245:4fdfe0860cc5

Make "mplayer -- --a" play the file --a instead of bailing out with a useless error message
author reimar
date Sat, 23 Apr 2005 20:41:19 +0000
parents bef9d6dc2333
children 55cbf0c204bc
comparison
equal deleted inserted replaced
15244:a8a8a4d69a1c 15245:4fdfe0860cc5
65 65
66 for (i = 1; i < argc; i++) { 66 for (i = 1; i < argc; i++) {
67 //next: 67 //next:
68 opt = argv[i]; 68 opt = argv[i];
69 /* check for -- (no more options id.) except --help! */ 69 /* check for -- (no more options id.) except --help! */
70 if ((*opt == '-') && (*(opt+1) == '-') && (*(opt+2) != 'h')) 70 if ((*opt == '-') && (*(opt+1) == '-') && (*(opt+2) == 0))
71 { 71 {
72 no_more_opts = 1; 72 no_more_opts = 1;
73 if (i+1 >= argc) 73 if (i+1 >= argc)
74 { 74 {
75 mp_msg(MSGT_CFGPARSER, MSGL_ERR, "'--' indicates no more options, but no filename was given on the command line.\n"); 75 mp_msg(MSGT_CFGPARSER, MSGL_ERR, "'--' indicates no more options, but no filename was given on the command line.\n");