Don't launch sub process if --help.

This commit is contained in:
Arthur Britto
2013-03-23 18:55:51 -07:00
parent f635980330
commit 8fc415d2bd

View File

@@ -188,8 +188,17 @@ int main(int argc, char* argv[])
}
}
if (iResult)
{
nothing();
}
else if (vm.count("help"))
{
iResult = 1;
}
if (HaveSustain() &&
!vm.count("parameters") && !vm.count("fg") && !vm.count("standalone") && !vm.count("unittest"))
!iResult && !vm.count("parameters") && !vm.count("fg") && !vm.count("standalone") && !vm.count("unittest"))
{
std::string logMe = DoSustain();
if (!logMe.empty())
@@ -251,10 +260,6 @@ int main(int argc, char* argv[])
{
nothing();
}
else if (vm.count("help"))
{
iResult = 1;
}
else if (!vm.count("parameters"))
{
// No arguments. Run server.