mirror of
https://github.com/dlang/phobos.git
synced 2025-04-30 23:20:29 +03:00
Fix issue 17327. Review comments: drop continue statement.
This commit is contained in:
parent
c1d49fc494
commit
684f41b64e
1 changed files with 6 additions and 6 deletions
12
std/getopt.d
12
std/getopt.d
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue