client: Sort options alphabetically, ping is TCP only.

This commit is contained in:
Jean-Claude Michelou authored and Olaf Bergmann committed 2018-09-24 15:55:57 +02:00
1 parent 8701fb33c7
commit ecfcd37f0c
2 files changed
+9 -5

No files matched your search

+2 -2
View File
@@ -514,7 +514,7 @@ usage( const char *program, const char *version) {
"Usage: %s [-a addr] [-b [num,]size] [-c certfile] [-C cafile] [-e text]\n"
"\t\t[-f file] [-k key] [-l loss] [-m method] [-o file]\n"
"\t\t[-p port] [-r] [-s duration] [-t type] [-u user]\n"
"\t\t[-v num] [-A type] [-B seconds] [-N] [-O num,text] [-K interval]\n"
"\t\t[-v num] [-A type] [-B seconds] [-K interval] [-N] [-O num,text]\n"
"\t\t[-P addr[:port]] [-R root_cafile] [-T token] [-U] URI\n\n"
"\tURI can be an absolute URI or a URI prefixed with scheme and host\n\n"
"\t-a addr\t\tThe local interface address to use\n"
@@ -553,7 +553,7 @@ usage( const char *program, const char *version) {
"\t \t\tcommand line the same filename for both the certfile and\n"
"\t \t\tcafile (as in '-c certfile -C certfile') to trigger\n"
"\t \t\tvalidation\n"
"\t-K interval\tsend a ping after interval seconds of inactivity\n"
"\t-K interval\tsend a ping after interval seconds of inactivity (TCP only)\n"
"\t-N \t\tSend NON-confirmable message\n"
"\t-O num,text\tAdd option num with contents text to request\n"
"\t-P addr[:port]\tUse proxy (automatically adds Proxy-Uri option to\n"
+7 -3
View File
@@ -17,9 +17,9 @@ SYNOPSIS
*coap-client* [*-a* addr] [*-b* [num,]size] [*-c* certfile] [*-e* text]
[*-f* file] [*-k* key] [*-l* loss] [*-m* method] [*-o* file]
[*-p* port] [*-r*] [*-s* duration] [*-t* type] [*-u* user]
[*-v* num] [*-A* type] [*-B* seconds] [*-C* cafile] [*-N*]
[*-O* num,text] [*-P* addr[:port]] [*-R* root_cafile]
[*-T* token] [*-U*] URI
[*-v* num] [*-A* type] [*-B* seconds] [*-C* cafile]
[*-K* interval] [*-N*] [*-O* num,text] [*-P* addr[:port]]
[*-R* root_cafile] [*-T* token] [*-U*] URI
DESCRIPTION
-----------
@@ -127,6 +127,10 @@ OPTIONS
have on the command line the same filename for both the certfile and cafile
(as in *-c certfile -C certfile*) to trigger validation.
*-K* interval::
Send a ping after interval seconds of inactivity (TCP only).
If not specified, keep-alive is disabled (default).
*-N* ::
Send NON-confirmable message. If option *-N* is not specified, a
confirmable message will be sent.