summaryrefslogtreecommitdiffstats
path: root/m_option.h
diff options
context:
space:
mode:
Diffstat (limited to 'm_option.h')
-rw-r--r--m_option.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/m_option.h b/m_option.h
index 8d2427c9a8..5ab2597549 100644
--- a/m_option.h
+++ b/m_option.h
@@ -217,6 +217,11 @@ struct m_option {
#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