diff options
author | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-04-13 19:18:51 +0000 |
---|---|---|
committer | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-04-13 19:18:51 +0000 |
commit | e4dc453ea095c1c3e282d5b6cc1370c74abb76cf (patch) | |
tree | 8a849caffbabb6308b2fb54e3581fa5797391513 /m_option.h | |
parent | d08bf2fc44100bc4ee8400de1b8704519225533c (diff) | |
download | mpv-e4dc453ea095c1c3e282d5b6cc1370c74abb76cf.tar.bz2 mpv-e4dc453ea095c1c3e282d5b6cc1370c74abb76cf.tar.xz |
Replace the trivial command line preparser with a more robust version
allowing all kind of options to be used.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26440 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'm_option.h')
-rw-r--r-- | m_option.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/m_option.h b/m_option.h index 13451390db..a54aac540f 100644 --- a/m_option.h +++ b/m_option.h @@ -321,6 +321,9 @@ struct m_option { /// option only if it was set by the user. #define M_OPT_OLD (1<<6) +/// The option should be set during command line pre-parsing +#define M_OPT_PRE_PARSE (1<<7) + /// \defgroup OldOptionFlags Backward compatibility /// /// These are kept for compatibility with older code. @@ -333,6 +336,7 @@ struct m_option { #define CONF_GLOBAL M_OPT_GLOBAL #define CONF_NOSAVE M_OPT_NOSAVE #define CONF_OLD M_OPT_OLD +#define CONF_PRE_PARSE M_OPT_PRE_PARSE ///@} ///@} @@ -395,6 +399,8 @@ struct m_option { #define M_CONFIG_FILE 0 /// Set when parsing command line arguments. #define M_COMMAND_LINE 1 +/// Set when pre-parsing the command line +#define M_COMMAND_LINE_PRE_PARSE 2 ///@} |