diff options
author | Mathias Stearn <redbeard0531@gmail.com> | 2009-10-12 20:02:59 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2009-10-14 17:43:18 -0400 |
commit | b7a086e1ad9c49c5e483e418c22b8c85f19a99b6 (patch) | |
tree | dc4ac2036bb711904a0348ba20073808babf1855 /tools | |
parent | 3dddfe2a7a677033d1dec28db402bfee71528035 (diff) | |
download | mongo-b7a086e1ad9c49c5e483e418c22b8c85f19a99b6.tar.gz |
mongofiles now supports stdin/out for put/get operations
Diffstat (limited to 'tools')
-rw-r--r-- | tools/files.cpp | 5 |
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; } |