mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 05:30:33 +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))
|
||||
{
|
||||
// parse '--b=true/false'
|
||||
if (val.length)
|
||||
{
|
||||
// parse '--b=true/false'
|
||||
*receiver = to!(typeof(*receiver))(val);
|
||||
continue;
|
||||
}
|
||||
|
||||
// no argument means set it to true
|
||||
*receiver = true;
|
||||
continue;
|
||||
else
|
||||
{
|
||||
// no argument means set it to true
|
||||
*receiver = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue