summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMike Dirolf <mike@10gen.com>2010-01-22 11:53:14 -0500
committerMike Dirolf <mike@10gen.com>2010-01-22 11:53:14 -0500
commit80ac4248a949e293f5053759e285bccb07760d5d (patch)
tree62131d2572a5137f901c64829262cbe6655bda93 /tools
parent8d789a66e0a18b8052a6d2d836e1646ace133c03 (diff)
downloadmongo-80ac4248a949e293f5053759e285bccb07760d5d.tar.gz
minor: tool argument errors to stderr not stdout
Diffstat (limited to 'tools')
-rw-r--r--tools/tool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/tool.cpp b/tools/tool.cpp
index 8243a458700..3a7176112e9 100644
--- a/tools/tool.cpp
+++ b/tools/tool.cpp
@@ -73,8 +73,8 @@ int mongo::Tool::main( int argc , char ** argv ){
po::notify( _params );
} catch (po::error &e) {
- cout << "ERROR: " << e.what() << endl << endl;
- printHelp(cout);
+ cerr << "ERROR: " << e.what() << endl << endl;
+ printHelp(cerr);
return EXIT_BADOPTIONS;
}