Skip to content

Commit

Permalink
Refs #20543: Improve usage message
Browse files Browse the repository at this point in the history
Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>
  • Loading branch information
JesusPoderoso committed Mar 14, 2024
1 parent d23810d commit 30317aa
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions examples/cpp/hello_world/CLIParser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ class CLIParser
static void print_help(
uint8_t return_code)
{
std::cout << "Usage: hello_world <entity> [options]" << std::endl;
std::cout << "" << std::endl;
std::cout << "Entities:" << std::endl;
std::cout << " publisher Run a publisher entity" << std::endl;
std::cout << " subscriber Run a subscriber entity" << std::endl;
std::cout << "Common options:" << std::endl;
std::cout << " -h, --help Print this help message" << std::endl;
std::cout << " -s, --samples Amount of samples to be sent or" << std::endl;
std::cout << " received (default: 0 [unlimited])" << std::endl;
std::cout << "Subscriber options:" << std::endl;
std::cout << " -w, --waitset Use waitset read condition" << std::endl;
std::cout << "Usage: hello_world <entity> [options]" << std::endl;
std::cout << "" << std::endl;
std::cout << "Entities:" << std::endl;
std::cout << " publisher Run a publisher entity" << std::endl;
std::cout << " subscriber Run a subscriber entity" << std::endl;
std::cout << "Common options:" << std::endl;
std::cout << " -h, --help Print this help message" << std::endl;
std::cout << " -s <num>, --samples <num> Number of samples to send or receive" << std::endl;
std::cout << " (Default: 0 [unlimited])" << std::endl;
std::cout << "Subscriber options:" << std::endl;
std::cout << " -w, --waitset Use waitset read condition" << std::endl;
std::exit(return_code);
}

Expand Down

0 comments on commit 30317aa

Please sign in to comment.