aboutsummaryrefslogtreecommitdiffstats
path: root/CommandLineInterface.cpp
diff options
context:
space:
mode:
authorRyan Casey <ryepdx@gmail.com>2015-04-24 00:42:01 +0800
committerRyan Casey <ryepdx@gmail.com>2015-04-24 00:42:01 +0800
commitd8f7051685c7a335bac68af628d33b4147b030be (patch)
tree575a37b2fe9240a8331ad92b6d67fd5d47da46ab /CommandLineInterface.cpp
parent245620bdc2da688c5738045ef6e1d739f99cb075 (diff)
downloaddexon-solidity-d8f7051685c7a335bac68af628d33b4147b030be.tar
dexon-solidity-d8f7051685c7a335bac68af628d33b4147b030be.tar.gz
dexon-solidity-d8f7051685c7a335bac68af628d33b4147b030be.tar.bz2
dexon-solidity-d8f7051685c7a335bac68af628d33b4147b030be.tar.lz
dexon-solidity-d8f7051685c7a335bac68af628d33b4147b030be.tar.xz
dexon-solidity-d8f7051685c7a335bac68af628d33b4147b030be.tar.zst
dexon-solidity-d8f7051685c7a335bac68af628d33b4147b030be.zip
Direct more mundane failures to cerr as well.
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;
}