refactor display of usage to be consistent with dvmhost;

pull/33/head
Bryan Biedenkapp 3 years ago
parent 8c5d9eb2c6
commit 50f85538f8

@ -98,14 +98,19 @@ void usage(const char* message, const char* arg)
::fprintf(stderr, "\n\n");
}
::fprintf(stdout, "usage: %s [-dvh][--hide-log][-c <monitor configuration file>]\n\n"
" -c <file> specifies the monitor configuration file to use\n"
"\n"
" --hide-log hide interactive logging window on startup\n"
"\n"
::fprintf(stdout,
"usage: %s [-dvh]"
"[--hide-log]"
"[-c <configuration file>]"
"\n\n"
" -d enable debug\n"
" -v show version information\n"
" -h show this screen\n"
"\n"
" --hide-log hide interactive logging window on startup\n"
"\n"
" -c <file> specifies the monitor configuration file to use\n"
"\n"
" -- stop handling options\n",
g_progExe.c_str());

@ -158,14 +158,21 @@ void usage(const char* message, const char* arg)
::fprintf(stderr, "\n\n");
}
::fprintf(stdout, "usage: %s [-dvh] [-a <address>] [-p <port>] [-P <password>] <command> <arguments ...>\n\n"
::fprintf(stdout,
"usage: %s [-dvh]"
"[-a <address>]"
"[-p <port>]"
"[-P <password>]"
" <command> <arguments ...>"
"\n\n"
" -d enable debug\n"
" -v show version information\n"
" -h show this screen\n"
"\n"
" -a remote modem command address\n"
" -p remote modem command port\n"
" -P remote modem authentication password\n"
"\n"
" -d enable debug\n"
" -v show version information\n"
" -h show this screen\n"
" -- stop handling options\n",
g_progExe.c_str());

Loading…
Cancel
Save

Powered by TurnKey Linux.