From 992b6813a8b9c0586fc65dca5bf3d0b69bbbd512 Mon Sep 17 00:00:00 2001 From: Florian Fischer <florian.fischer@muhq.space> Date: Mon, 29 Nov 2021 15:31:19 +0100 Subject: [PATCH] EchoClient: improve the help message --- apps/EchoClient.cpp | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/apps/EchoClient.cpp b/apps/EchoClient.cpp index 323de82e..457d9d5e 100644 --- a/apps/EchoClient.cpp +++ b/apps/EchoClient.cpp @@ -415,12 +415,19 @@ static auto existsOption(int argc, char** argv, const std::string& option) -> bo } static void printUsage(char* name) { - std::cerr - << "Usage: " << name - << "[-h] [-p <port>] [-c <clients>] [-a <address>] [-s <size>] [-b <server backlog>]" - " [-f <output-file>] [-i <iterations> | -t <execution time in sec>] [--linked-futures]" - " [--coordinator <coordinator-host>" - << std::endl; + std::cerr << "Usage: " << name << " [options]" << std::endl + << " [-h]\tprint this help message" << std::endl + << " [-p <port>]\tport to connect to" << std::endl + << " [-c <clients>]\tnumber of concurrent client connections" << std::endl + << " [-a <address>]\tserver address to connect to" << std::endl + << " [-s <size>]\tsize of each echo message" << std::endl + << " [-b <server backlog>]\tnumber of concurrent connect attempts" << std::endl + << " [-f <output-file>]\tfile to write the results to" << std::endl + << " [-i <iterations> | -t <execution time in sec>]\ttermination conditions" + << std::endl + << " [--linked-futures]\tuse linked futures" << std::endl + << " [--coordinator <coordinator-host>]\tcoordinator address to connect to" + << std::endl; } static void printIp(struct sockaddr* addr) { -- GitLab