summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMathias Stearn <redbeard0531@gmail.com>2009-10-12 20:02:59 -0400
committerMathias Stearn <mathias@10gen.com>2009-10-14 17:43:18 -0400
commitb7a086e1ad9c49c5e483e418c22b8c85f19a99b6 (patch)
treedc4ac2036bb711904a0348ba20073808babf1855 /tools
parent3dddfe2a7a677033d1dec28db402bfee71528035 (diff)
downloadmongo-b7a086e1ad9c49c5e483e418c22b8c85f19a99b6.tar.gz
mongofiles now supports stdin/out for put/get operations
Diffstat (limited to 'tools')
-rw-r--r--tools/files.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/files.cpp b/tools/files.cpp
index fbd9c330062..b1fea267400 100644
--- a/tools/files.cpp
+++ b/tools/files.cpp
@@ -111,7 +111,10 @@ public:
string out = getParam("local", f.getFilename());
f.write( out );
- cout << "done write to: " << out << endl;
+
+ if (out != "-")
+ cout << "done write to: " << out << endl;
+
return 0;
}