Permalink
Browse files

Support for += syntax for options, candidate for ticket #502

  • Loading branch information...
1 parent 5e1bf3d commit 98dd3252a23d3d5ef4541abb5b345767fe9b600f @cmouse cmouse committed with Habbie Jun 26, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 pdns/arguments.cc
View
@@ -327,11 +327,11 @@ void ArgvMap::parseOne(const string &arg, const string &parseOnly, bool lax)
if(parmIsset(var)) {
if (incremental) {
- if (params[var].empty()) {
- throw ArgException("Incremental parameter '"+var+"' without a parent");
+ if (!params[var].empty()) {
+ params[var]+=",";
}
- params[var]+=","+val;
- } else
+ params[var]+=val;
+ } else
params[var]=val;
}
else

0 comments on commit 98dd325

Please sign in to comment.