From d29d4df634a9d847a2b5ef7a04f32726cd03c1ef Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 3 Sep 2012 22:44:44 +0200 Subject: options: remove M_OPT_IMPLICIT_DEFAULT This was to make an option without value use the option's default value (e.g. --term-osd is the same as --term-osd=auto). Make it simpler by handling this case as an empty choice. The flag was probably needed when option handling still did ambiguous argument parsing. --- m_option.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'm_option.h') diff --git a/m_option.h b/m_option.h index ab83027a85..f46b14281c 100644 --- a/m_option.h +++ b/m_option.h @@ -292,11 +292,6 @@ struct m_option { // The option should be set during command line pre-parsing #define M_OPT_PRE_PARSE (1 << 6) -// Accept an option without parameter, even if the option type normally requires -// a parameter. The option value will be set to a default value. -// For m_option_type_choice, the first listed choice will be used. -#define M_OPT_IMPLICIT_DEFAULT (1 << 7) - // For options with children, add all children as top-level arguments // (e.g. "--parent=child=value" becomes "--parent-child=value") #define M_OPT_PREFIXED (1 << 8) -- cgit v1.2.3