1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-29 18:42:09 +00:00

fixed fault with --help

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2624 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2001-11-02 02:21:57 +00:00
parent 268dfb4748
commit f8d244aa0c

View File

@ -521,7 +521,8 @@ int parse_command_line(struct config *conf, int argc, char **argv, char **envp,
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);