From 5b7931c81ba72c04fc12ddd54c70192790e92c75 Mon Sep 17 00:00:00 2001 From: Jean-Louis Leroy <> Date: Fri, 29 Sep 2023 14:16:24 -0400 Subject: [PATCH] review Signed-off-by: Jean-Louis Leroy <> --- src/applications/bmqbrkr/bmqbrkr.m.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/applications/bmqbrkr/bmqbrkr.m.cpp b/src/applications/bmqbrkr/bmqbrkr.m.cpp index 0861fc7077..87e400530c 100644 --- a/src/applications/bmqbrkr/bmqbrkr.m.cpp +++ b/src/applications/bmqbrkr/bmqbrkr.m.cpp @@ -594,7 +594,6 @@ run(bsl::ostream& errorDescription, TaskEnvironment* taskEnv, bool wait = true) int main(int argc, const char* argv[]) { - // Parse command line parameters bsl::string configDir; bsl::string instanceId = "default"; @@ -637,7 +636,7 @@ int main(int argc, const char* argv[]) balcl::OccurrenceInfo::e_OPTIONAL}, {"v|version", "version", - "Show version number", + "Show broker version number", balcl::TypeInfo(&version), balcl::OccurrenceInfo::e_OPTIONAL}, }; @@ -652,13 +651,15 @@ int main(int argc, const char* argv[]) } if (version) { - bsl::cout << bmqbrkrscm::Version::version() << "\n"; + bsl::cout << "BlazingMQ broker version: " + << bmqbrkrscm::Version::version() << "\n"; return 0; } if (configDir.empty()) { bsl::cerr << "Error: No value supplied for the non-option argument " "\"config\".\n"; + return mqbu::ExitCode::e_COMMAND_LINE; // RETURN } printStartStopTrace("STARTING");