Change-Id: I564ef5ebf16c0ee50da69f3d8b97a5452a1cd0b8
This commit is contained in:
Stephan Bergmann 2014-01-10 11:34:51 +01:00
parent ed6a2f3bb9
commit 21eae4b202

View File

@ -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);