From 509ad47b391e0f583e286b49f48b920e93a05d61 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 19 Feb 2009 13:06:55 -0400 Subject: Accept --long-option=value --- src/option.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/option.cc') diff --git a/src/option.cc b/src/option.cc index f8e6a713..8b36e64c 100644 --- a/src/option.cc +++ b/src/option.cc @@ -194,7 +194,7 @@ strings_list process_arguments(strings_list args, scope_t& scope) if (! opt.first) throw_(option_error, "illegal option --" << name); - if (opt.second && ++i != args.end() && value == NULL) { + if (opt.second && ! value && ++i != args.end() && value == NULL) { value = (*i).c_str(); DEBUG("option.args", " read option value from arg: " << value); if (value == NULL) -- cgit v1.2.3