From 507fa7e2c23623dcbecf20a392ee025002c83866 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Wed, 27 Jul 2011 20:59:44 +0300 Subject: options: indicate ambiguous option parameters explicitly Command line options like "-foo xyz" are ambiguous: "xyz" may be a parameter to the option "foo" or an unrelated argument. Instead of relying on the struct m_config mode field (commandline/file) pass parameters to specify ambiguous mode explicitly. Meant for "--foo" options which are never ambiguous on command line either. --- parser-cfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parser-cfg.c') diff --git a/parser-cfg.c b/parser-cfg.c index 2d0e3ee3cd..8570bcefa0 100644 --- a/parser-cfg.c +++ b/parser-cfg.c @@ -237,7 +237,7 @@ int m_config_parse_config_file(m_config_t* config, const char *conffile) tmp = m_config_set_profile_option(config,profile, opt,param); } else - tmp = m_config_set_option(config, opt, param); + tmp = m_config_set_option(config, opt, param, false); if (tmp < 0) { PRINT_LINENUM; if(tmp == M_OPT_UNKNOWN) { -- cgit v1.2.3