Skip to content
Browse files

CS-1535: Added method for toggling stdout/stderr in tools

  • Loading branch information...
1 parent 8849484 commit 24e1f0b92e438f336a3d7acac4f341eaddd89af2 Brandon Diamond committed Oct 28, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 tools/tool.h
View
6 tools/tool.h
@@ -82,9 +82,13 @@ namespace mongo {
return _db + "." + _coll;
}
+ void useStandardOutput( bool mode ) {
+ _usesstdout = mode;
+ }
+
bool isMaster();
bool isMongos();
-
+
virtual void preSetup() {}
virtual int run() = 0;

0 comments on commit 24e1f0b

Please sign in to comment.
Something went wrong with that request. Please try again.