mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 18:45:52 +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() &&
|
||||
!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.
|
||||
|
||||
Reference in New Issue
Block a user