Fix issue 17327. Review comments: drop continue statement.

This commit is contained in:
Jon Degenhardt 2017-04-16 08:01:49 -07:00
parent c1d49fc494
commit 684f41b64e

View file

@ -855,16 +855,16 @@ private bool handleOption(R)(string option, R receiver, ref string[] args,
static if (is(typeof(*receiver) == bool)) static if (is(typeof(*receiver) == bool))
{ {
// parse '--b=true/false'
if (val.length) if (val.length)
{ {
// parse '--b=true/false'
*receiver = to!(typeof(*receiver))(val); *receiver = to!(typeof(*receiver))(val);
continue;
} }
else
// no argument means set it to true {
*receiver = true; // no argument means set it to true
continue; *receiver = true;
}
} }
else else
{ {