Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
16344:b139ca30d52b | 16345:feb16d0117c8 |
---|---|
215 #define M_OPT_MISSING_PARAM -2 | 215 #define M_OPT_MISSING_PARAM -2 |
216 #define M_OPT_INVALID -3 | 216 #define M_OPT_INVALID -3 |
217 #define M_OPT_OUT_OF_RANGE -4 | 217 #define M_OPT_OUT_OF_RANGE -4 |
218 #define M_OPT_PARSER_ERR -5 | 218 #define M_OPT_PARSER_ERR -5 |
219 #define M_OPT_EXIT -6 | 219 #define M_OPT_EXIT -6 |
220 // M_OPT_EXIT must be the lowest number on this list. | |
221 // To indicate that mplayer should exit without playing anything, | |
222 // a parsing function needs to return M_OPT_EXIT less the number | |
223 // of additional command line parameters it consumed. | |
224 // Generally it will return either M_OPT_EXIT or M_OPT_EXIT - 1. | |
220 | 225 |
221 // FIXME: backward compatibility | 226 // FIXME: backward compatibility |
222 #define ERR_NOT_AN_OPTION M_OPT_UNKNOWN | 227 #define ERR_NOT_AN_OPTION M_OPT_UNKNOWN |
223 #define ERR_MISSING_PARAM M_OPT_MISSING_PARAM | 228 #define ERR_MISSING_PARAM M_OPT_MISSING_PARAM |
224 #define ERR_OUT_OF_RANGE M_OPT_OUT_OF_RANGE | 229 #define ERR_OUT_OF_RANGE M_OPT_OUT_OF_RANGE |