diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-06-01 14:38:11 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2018-06-13 17:15:14 +0200 |
commit | ed6838709801ed702adddb634a4c5013bc4f9472 (patch) | |
tree | b1f3c820f2ab05b7db639cf5f102d3766a1cbe93 | |
parent | 5d7c275505763ec98042e3906967b0707625a3ca (diff) |
afb-client-demo: improved usage message
Change-Id: Ia529be2bf17d9bce3adfc5cb052afd724ae7bbdf
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
-rw-r--r-- | src/afb-client-demo.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/afb-client-demo.c b/src/afb-client-demo.c index 6a0fef5e..ba43cc9a 100644 --- a/src/afb-client-demo.c +++ b/src/afb-client-demo.c @@ -96,6 +96,19 @@ static void usage(int status, char *arg0) name = name ? name + 1 : arg0; fprintf(status ? stderr : stdout, "usage: %s [-H [-r]] [-b] [-e] uri [api verb [data]]\n", name); fprintf(status ? stderr : stdout, " %s -d [-H [-r]] [-b] [-e] uri [verb [data]]\n", name); + fprintf(status ? stderr : stdout, "\n" \ + "allowed options\n" \ + " --break, -b Break connection just after event/call has been emitted.\n" \ + " --direct, -d Direct api\n" \ + " --echo, -e Echo inputs\n" \ + " --help, -h Display this help\n" \ + " --human, -H Display human readable JSON\n" \ + " --raw, -r Raw output (default)\n" \ + "Example:\n" \ + " %s --human 'localhost:1234/api?token=HELLO&uuid=magic' hello ping\n" + "\n", name + ); + exit(status); } |