diff options
author | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-02 08:29:30 +0000 |
---|---|---|
committer | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-02 08:29:30 +0000 |
commit | 43844d090c5580b71228c7a13efa7ce13b37cab8 (patch) | |
tree | 4eba848365b1290435183da2cd7e2d95865b20f0 /m_option.h | |
parent | 2a9b3541abe07838a0fe62fa1524a934488393d1 (diff) | |
download | mpv-43844d090c5580b71228c7a13efa7ce13b37cab8.tar.bz2 mpv-43844d090c5580b71228c7a13efa7ce13b37cab8.tar.xz |
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
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16346 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'm_option.h')
-rw-r--r-- | m_option.h | 5 |
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 |