diff options
Diffstat (limited to 'src/mongo/shell/shell_options.cpp')
-rw-r--r-- | src/mongo/shell/shell_options.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/shell/shell_options.cpp b/src/mongo/shell/shell_options.cpp index 49037e6e12d..1b378836c35 100644 --- a/src/mongo/shell/shell_options.cpp +++ b/src/mongo/shell/shell_options.cpp @@ -218,13 +218,14 @@ std::string getMongoShellHelp(StringData name, const moe::OptionSection& options bool handlePreValidationMongoShellOptions(const moe::Environment& params, const std::vector<std::string>& args) { + auto&& vii = VersionInfoInterface::instance(); if (params.count("version") || params.count("help")) { setPlainConsoleLogger(); - log() << mongoShellVersion(); + log() << mongoShellVersion(vii); if (params.count("help")) { log() << getMongoShellHelp(args[0], moe::startupOptions); } else { - printBuildInfo(); + vii.logBuildInfo(); } return false; } |