diff options
author | Justin Dearing <jdearing@mongodb.org> | 2010-08-15 12:44:08 -0400 |
---|---|---|
committer | Kristina Chodorow <k@ubuntu.(none)> | 2010-08-23 11:38:39 -0400 |
commit | 52163efb4dedd001900aacefd087ff19d5344a61 (patch) | |
tree | e7d4f9c4df1bfc267607d0170bb9551d8b45caea /tools | |
parent | 9b8a7788ab7fe1d2ece7aaf6958b8d7de9110628 (diff) | |
download | mongo-52163efb4dedd001900aacefd087ff19d5344a61.tar.gz |
Made the special stdout parameter -, to be more in line with other apps, e.g. nmap.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/dump.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/dump.cpp b/tools/dump.cpp index c8d777e3bf2..03b3d96813c 100644 --- a/tools/dump.cpp +++ b/tools/dump.cpp @@ -30,7 +30,7 @@ class Dump : public Tool { public: Dump() : Tool( "dump" , ALL , "*" , "*" , false ){ add_options() - ("out,o", po::value<string>()->default_value("dump"), "output directory or stdout") + ("out,o", po::value<string>()->default_value("dump"), "output directory or \"-\" for stdout") ("query,q", po::value<string>() , "json query" ) ; } @@ -110,7 +110,7 @@ public: // check if we're outputting to stdout string out = getParam("out"); - if ( out == "stdout" ) { + if ( out == "-" ) { if ( _db != "*" && _coll != "*" ) { writeCollectionStdout( _db+"."+_coll ); return 0; |