From 8fc415d2bd77cc7f9af11e027a993d590e3f8146 Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Sat, 23 Mar 2013 18:55:51 -0700 Subject: [PATCH] Don't launch sub process if --help. --- src/cpp/ripple/main.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/cpp/ripple/main.cpp b/src/cpp/ripple/main.cpp index 8a7ed48b24..e717d20be3 100644 --- a/src/cpp/ripple/main.cpp +++ b/src/cpp/ripple/main.cpp @@ -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.