mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 03:26:01 +00:00
Don't launch sub process if --help.
This commit is contained in:
@@ -188,8 +188,17 @@ int main(int argc, char* argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (iResult)
|
||||||
|
{
|
||||||
|
nothing();
|
||||||
|
}
|
||||||
|
else if (vm.count("help"))
|
||||||
|
{
|
||||||
|
iResult = 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (HaveSustain() &&
|
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();
|
std::string logMe = DoSustain();
|
||||||
if (!logMe.empty())
|
if (!logMe.empty())
|
||||||
@@ -251,10 +260,6 @@ int main(int argc, char* argv[])
|
|||||||
{
|
{
|
||||||
nothing();
|
nothing();
|
||||||
}
|
}
|
||||||
else if (vm.count("help"))
|
|
||||||
{
|
|
||||||
iResult = 1;
|
|
||||||
}
|
|
||||||
else if (!vm.count("parameters"))
|
else if (!vm.count("parameters"))
|
||||||
{
|
{
|
||||||
// No arguments. Run server.
|
// No arguments. Run server.
|
||||||
|
|||||||
Reference in New Issue
Block a user