simplify
Change-Id: I564ef5ebf16c0ee50da69f3d8b97a5452a1cd0b8
This commit is contained in:
parent
ed6a2f3bb9
commit
21eae4b202
@ -47,14 +47,16 @@ bool Options::checkArgument(std::vector< std::string> & rArgs, char const * arg,
|
|||||||
switch (arg[0])
|
switch (arg[0])
|
||||||
{
|
{
|
||||||
case '@':
|
case '@':
|
||||||
if ((result = (len > 1)) == true)
|
result = len > 1;
|
||||||
|
if (result)
|
||||||
{
|
{
|
||||||
// "@<cmdfile>"
|
// "@<cmdfile>"
|
||||||
result = Options::checkCommandFile(rArgs, &(arg[1]));
|
result = Options::checkCommandFile(rArgs, &(arg[1]));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case '-':
|
case '-':
|
||||||
if ((result = (len > 1)) == true)
|
result = len > 1;
|
||||||
|
if (result)
|
||||||
{
|
{
|
||||||
// "-<option>"
|
// "-<option>"
|
||||||
std::string option (&(arg[0]), 2);
|
std::string option (&(arg[0]), 2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user