summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Dirolf <mike@10gen.com>2009-08-07 10:07:57 -0400
committerMike Dirolf <mike@10gen.com>2009-08-07 10:07:57 -0400
commit563fa6bb6461f8602beaccd7b8a50c9bed8ad83d (patch)
treef47a9b7eea54ed2cba57a9055d091b170f62ffce
parent6eee7dac84de1f0a3a9f49971451c496546caebd (diff)
downloadmongo-563fa6bb6461f8602beaccd7b8a50c9bed8ad83d.tar.gz
use dbExecCommand instead of hardcoding executable name into help text
-rw-r--r--db/db.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/db.cpp b/db/db.cpp
index f2b524ee609..a084f095483 100644
--- a/db/db.cpp
+++ b/db/db.cpp
@@ -413,8 +413,8 @@ using namespace mongo;
namespace po = boost::program_options;
void show_help_text(po::options_description options) {
- cout << "To run mongod with the default options use 'mongod run'." << endl << endl;
- cout << options << endl;
+ cout << "To run with the default options use '" << dbExecCommand << " run'." << endl << endl
+ << options << endl;
};
/* Return error string or "" if no errors. */