Accept --long-option=value
This commit is contained in:
parent
cae49a2998
commit
509ad47b39
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue