From c193b910c0aafe563839bbb3b5559036dfc3d927 Mon Sep 17 00:00:00 2001 From: albeu Date: Wed, 2 Apr 2003 16:13:16 +0000 Subject: Exit when the option parser return M_OPT_EXIT git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9793 b3059339-0415-0410-9bf9-f77b7e298cf2 --- parser-mpcmd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'parser-mpcmd.c') diff --git a/parser-mpcmd.c b/parser-mpcmd.c index b9db499754..e617eefc38 100644 --- a/parser-mpcmd.c +++ b/parser-mpcmd.c @@ -186,8 +186,11 @@ m_config_parse_mp_command_line(m_config_t *config, int argc, char **argv) } } - if (tmp < 0) + if (tmp < 0) { + if (tmp == M_OPT_EXIT) + exit(0); goto err_out; + } i += tmp; } else /* filename */ -- cgit v1.2.3