[PATCH v2 7/8] tools/xs-clients: fix usage information of xenstore-exists

Juergen Gross posted 8 patches 1 week, 4 days ago
[PATCH v2 7/8] tools/xs-clients: fix usage information of xenstore-exists
Posted by Juergen Gross 1 week, 4 days ago
The usage information of xenstore-exists is just wrong, as the "-p"
option is not supported by xenstore-exists.

Signed-off-by: Juergen Gross <jgross@suse.com>
---
V2:
- new patch
---
 tools/xs-clients/xenstore_client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/xs-clients/xenstore_client.c b/tools/xs-clients/xenstore_client.c
index 1794451d43..3b02d3a196 100644
--- a/tools/xs-clients/xenstore_client.c
+++ b/tools/xs-clients/xenstore_client.c
@@ -232,7 +232,7 @@ usage(int eval, enum mode mode, int incl_mode, const char *progname)
 	errx(eval, "Usage: %s %s[-h] [-t] key [...]", progname, mstr);
     case MODE_exists:
 	mstr = incl_mode ? "exists " : "";
-	/* fallthrough */
+	errx(eval, "Usage: %s %s[-h] key", progname, mstr);
     case MODE_list:
 	mstr = mstr ? : incl_mode ? "list " : "";
 	errx(eval, "Usage: %s %s[-h] [-p] key [...]", progname, mstr);
-- 
2.53.0