From e07443e414478789d6c782f61a144960251c8dd4 Mon Sep 17 00:00:00 2001 From: MonsieurNicolas Date: Thu, 29 Nov 2018 18:44:48 -0800 Subject: [PATCH] output DEPRECATED message in stderr to avoid confusing scripts --- src/main/DeprecatedCommandLine.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/DeprecatedCommandLine.cpp b/src/main/DeprecatedCommandLine.cpp index 25c873c893..6e3bc3137d 100644 --- a/src/main/DeprecatedCommandLine.cpp +++ b/src/main/DeprecatedCommandLine.cpp @@ -215,8 +215,9 @@ catchupTo(Application::pointer app, uint32_t to, Json::Value& catchupInfo) int handleDeprecatedCommandLine(int argc, char* const* argv) { - std::cout << "Using DEPRECATED command-line syntax.\n"; - std::cout << "Please refer to documentation for new syntax.\n\n"; + std::cerr << "Using DEPRECATED command-line syntax." << std::endl; + std::cerr << "Please refer to documentation for new syntax." << std::endl + << std::endl; std::string cfgFile("stellar-core.cfg"); std::string command;