Correct argument check for benchmark --file argument

The condition was completely backwards so no file could ever be loaded.
This commit is contained in:
Kenneth Moreland 2020-12-21 15:56:45 -07:00
parent 3eeeb1cb08
commit e0e24090a4

@ -775,6 +775,10 @@ struct Arg : vtkm::cont::internal::option::Arg
bool msg)
{
if ((option.arg != nullptr) && (option.arg[0] != '\0'))
{
return vtkm::cont::internal::option::ARG_OK;
}
else
{
if (msg)
{
@ -782,10 +786,6 @@ struct Arg : vtkm::cont::internal::option::Arg
}
return vtkm::cont::internal::option::ARG_ILLEGAL;
}
else
{
return vtkm::cont::internal::option::ARG_OK;
}
}
};