diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-02 02:21:57 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-02 02:21:57 +0000 |
commit | f8d244aa0c9420d392a536ea39bb8e55bc37b0f7 (patch) | |
tree | 40a95f1976817cbe8982c2e4e66476aa2d607eb3 | |
parent | 268dfb474868e32c4d84c5291d8ec0dd7f6d09b2 (diff) | |
download | mpv-f8d244aa0c9420d392a536ea39bb8e55bc37b0f7.tar.bz2 mpv-f8d244aa0c9420d392a536ea39bb8e55bc37b0f7.tar.xz |
fixed fault with --help
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2624 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | cfgparser.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cfgparser.c b/cfgparser.c index b446b4392f..c3f2fb854c 100644 --- a/cfgparser.c +++ b/cfgparser.c @@ -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); |