summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBrandon Diamond <brandon@10gen.com>2011-10-28 16:27:59 -0400
committerBrandon Diamond <brandon@10gen.com>2011-10-28 16:28:55 -0400
commit8a79e63cbc99be8f475fa0451095f07a9ac27e5b (patch)
tree9445a4f488044f0cefcd277964d3c75490cdb571 /tools
parentc65c75bb10689f419b863c824387444a01582aa4 (diff)
downloadmongo-8a79e63cbc99be8f475fa0451095f07a9ac27e5b.tar.gz
CS-1535: Added method for toggling stdout/stderr in tools
Diffstat (limited to 'tools')
-rw-r--r--tools/tool.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/tool.h b/tools/tool.h
index e6694f30823..e40109362c5 100644
--- a/tools/tool.h
+++ b/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;