From e6c5f5af7e72e9b3f29441e556d94b724218b59f Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Thu, 12 Jun 2014 22:23:55 +0100 Subject: [PATCH] Add missing usage text. --- client/pub_client.c | 2 +- client/sub_client.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/pub_client.c b/client/pub_client.c index 252229f3..42719fed 100644 --- a/client/pub_client.c +++ b/client/pub_client.c @@ -232,6 +232,7 @@ void print_usage(void) printf(" -M : the maximum inflight messages for QoS 1/2..\n"); printf(" -n : send a null (zero length) message.\n"); printf(" -p : network port to connect to. Defaults to 1883.\n"); + printf(" -P : provide a password (requires MQTT 3.1 broker)\n"); printf(" -q : quality of service level to use for all messages. Defaults to 0.\n"); printf(" -r : message should be retained.\n"); printf(" -s : read message from stdin, sending the entire input as a message.\n"); @@ -240,7 +241,6 @@ void print_usage(void) #endif printf(" -t : mqtt topic to publish to.\n"); printf(" -u : provide a username (requires MQTT 3.1 broker)\n"); - printf(" -P : provide a password (requires MQTT 3.1 broker)\n"); printf(" --help : display this message.\n"); printf(" --quiet : don't print error messages.\n"); printf(" --will-payload : payload for the client Will, which is sent by the broker in case of\n"); diff --git a/client/sub_client.c b/client/sub_client.c index dab5cc92..8564153b 100644 --- a/client/sub_client.c +++ b/client/sub_client.c @@ -156,15 +156,16 @@ void print_usage(void) printf(" -k : keep alive in seconds for this client. Defaults to 60.\n"); printf(" -N : do not add an end of line character when printing the payload.\n"); printf(" -p : network port to connect to. Defaults to 1883.\n"); + printf(" -P : provide a password (requires MQTT 3.1 broker)\n"); printf(" -q : quality of service level to use for the subscription. Defaults to 0.\n"); printf(" -R : do not print stale messages (those with retain set).\n"); #ifdef WITH_SRV printf(" -S : use SRV lookups to determine which host to connect to.\n"); #endif printf(" -t : mqtt topic to subscribe to. May be repeated multiple times.\n"); + printf(" -T : topic string to filter out of results. May be repeated.\n"); printf(" -u : provide a username (requires MQTT 3.1 broker)\n"); printf(" -v : print published messages verbosely.\n"); - printf(" -P : provide a password (requires MQTT 3.1 broker)\n"); printf(" --help : display this message.\n"); printf(" --quiet : don't print error messages.\n"); printf(" --will-payload : payload for the client Will, which is sent by the broker in case of\n");