cli: document usage of "subscribe" command
authorRafał Miłecki <rafal@milecki.pl>
Wed, 29 Jul 2020 08:17:18 +0000 (10:17 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Wed, 5 Aug 2020 06:20:32 +0000 (08:20 +0200)
Support for "subscribe" command was added years ago in the commit
453b87f6315f ("cli: add support for subscribing to objects"). Document
its usage.

Cc: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
cli.c

diff --git a/cli.c b/cli.c
index f566279b4f6d1b54de85985518365167731cba13..81591ec44d11aa053d3461d774d58e59b0bfbbe0 100644 (file)
--- a/cli.c
+++ b/cli.c
@@ -549,6 +549,7 @@ static int usage(const char *prog)
                "Commands:\n"
                " - list [<path>]                       List objects\n"
                " - call <path> <method> [<message>]    Call an object method\n"
+               " - subscribe <path> [<path>...]        Subscribe to object(s) notifications\n"
                " - listen [<path>...]                  Listen for events\n"
                " - send <type> [<message>]             Send an event\n"
                " - wait_for <object> [<object>...]     Wait for multiple objects to appear on ubus\n"