Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Louis Leroy <>
  • Loading branch information
Jean-Louis Leroy committed Sep 29, 2023
1 parent 4cc67e5 commit 5b7931c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/applications/bmqbrkr/bmqbrkr.m.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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},
};
Expand All @@ -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");
Expand Down

0 comments on commit 5b7931c

Please sign in to comment.