aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV.Krishn <vkrishn4@gmail.com>2014-03-26 03:34:06 +0530
committerV.Krishn <vkrishn4@gmail.com>2014-03-26 03:34:06 +0530
commit6c376cb688bc146b39cfe507440355338ddee28c (patch)
tree4d2a4e1a2a2cd64a87ee4c17b6585f7fc07b8a2a
parent8fef0e0efe6daf98f9d3e01b571218226c2a82a7 (diff)
downloadmqtt-dirpub-6c376cb688bc146b39cfe507440355338ddee28c.tar.bz2
update docs, add missing overwrite option in -h
-rw-r--r--README.md5
-rw-r--r--sub_client.c2
2 files changed, 3 insertions, 4 deletions
diff --git a/README.md b/README.md
index 1a0c1b4..c470a92 100644
--- a/README.md
+++ b/README.md
@@ -22,13 +22,12 @@ allowed masks are:
will create file:
`/tmp/msgs/2010/10-29/topic/id-05-40`
-**topic** having hierarchy structure gets further resolved to directory.
+Note: **topic**/s *having hierarchy structure gets further resolved to directory.*
`--overwrite`
Works only with `--fmask`. This options starts client in overwrite mode.
-
-**Caution:** The existing data files get overwritten with every messages received.
+*Caution: The existing data files get overwritten with every messages received.*
Dependencies
diff --git a/sub_client.c b/sub_client.c
index f2da82f..a64a9b6 100644
--- a/sub_client.c
+++ b/sub_client.c
@@ -491,7 +491,7 @@ void print_usage(void)
printf(" [-i id] [-I id_prefix]\n");
printf(" [-d] [-N] [--quiet] [-v]\n");
printf(" [-u username [-P password]]\n");
- printf(" [--fmask outfile]\n");
+ printf(" [--fmask outfile [--overwrite]]\n");
printf(" [--will-topic [--will-payload payload] [--will-qos qos] [--will-retain]]\n");
#ifdef WITH_TLS
printf(" [{--cafile file | --capath dir} [--cert file] [--key file]\n");