options: add M_OPT_FILE flag to mark options that want a file(list)

This commit is contained in:
Alessandro Ghedini
2014-08-13 23:24:46 +02:00
committed by wm4
parent b5d253a5cb
commit 1273febc44
3 changed files with 20 additions and 15 deletions

View File

@@ -357,6 +357,9 @@ struct m_option {
// See M_OPT_TYPE_OPTIONAL_PARAM.
#define M_OPT_OPTIONAL_PARAM (1 << 10)
// The option expects a file name (or a list of file names)
#define M_OPT_FILE (1 << 11)
// These are kept for compatibility with older code.
#define CONF_MIN M_OPT_MIN
#define CONF_MAX M_OPT_MAX