aboutsummaryrefslogtreecommitdiffstats
path: root/CommandLineInterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CommandLineInterface.cpp')
-rw-r--r--CommandLineInterface.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/CommandLineInterface.cpp b/CommandLineInterface.cpp
index 5e4c901f..0cc1ab25 100644
--- a/CommandLineInterface.cpp
+++ b/CommandLineInterface.cpp
@@ -270,7 +270,7 @@ bool CommandLineInterface::parseArguments(int argc, char** argv)
}
catch (po::error const& _exception)
{
- cout << _exception.what() << endl;
+ cerr << _exception.what() << endl;
return false;
}
if (m_args.count("combined-json"))
@@ -279,7 +279,7 @@ bool CommandLineInterface::parseArguments(int argc, char** argv)
for (string const& item: boost::split(requests, m_args["combined-json"].as<string>(), boost::is_any_of(",")))
if (!g_combinedJsonArgs.count(item))
{
- cout << "Invalid option to --combined-json: " << item << endl;
+ cerr << "Invalid option to --combined-json: " << item << endl;
return false;
}
}
@@ -317,13 +317,13 @@ bool CommandLineInterface::processInput()
auto path = boost::filesystem::path(infile);
if (!boost::filesystem::exists(path))
{
- cout << "Skipping non existant input file \"" << infile << "\"" << endl;
+ cerr << "Skipping non existant input file \"" << infile << "\"" << endl;
continue;
}
if (!boost::filesystem::is_regular_file(path))
{
- cout << "\"" << infile << "\" is not a valid file. Skipping" << endl;
+ cerr << "\"" << infile << "\" is not a valid file. Skipping" << endl;
continue;
}