diff m_option.h @ 16345:feb16d0117c8

allow multiple help clauses on the command line, Patch by kiriuja " mplayer-patches AH en-directo POUM net " This one makes mplayer -vo help -ao help -ac help -vc help -pphelp -af help -vfm help -vf help -afm help -fstype help produce the desired output. From the thread: Date: Jul 16, 2005 8:25 PM Subject: [MPlayer-dev-eng] [PATCH] allow multiple help clauses on the command line
author gpoirier
date Fri, 02 Sep 2005 08:29:30 +0000
parents 474a40917f73
children b8ce59172e6a
line wrap: on
line diff
--- a/m_option.h	Fri Sep 02 00:05:21 2005 +0000
+++ b/m_option.h	Fri Sep 02 08:29:30 2005 +0000
@@ -217,6 +217,11 @@
 #define M_OPT_OUT_OF_RANGE	-4
 #define M_OPT_PARSER_ERR	-5
 #define M_OPT_EXIT              -6
+// M_OPT_EXIT must be the lowest number on this list.
+// To indicate that mplayer should exit without playing anything,
+// a parsing function needs to return M_OPT_EXIT less the number
+// of additional command line parameters it consumed.
+// Generally it will return either M_OPT_EXIT or M_OPT_EXIT - 1.
 
 // FIXME: backward compatibility
 #define ERR_NOT_AN_OPTION	M_OPT_UNKNOWN