summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cli/src/cli-cmd-parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c
index 346baeed87d..00cba5782a7 100644
--- a/cli/src/cli-cmd-parser.c
+++ b/cli/src/cli-cmd-parser.c
@@ -582,10 +582,10 @@ cli_cmd_volume_set_parse (const char **words, int wordcount, dict_t **options)
if (ret)
goto out;
- if (!strcmp (volname, "help") && !words[3] && !words[4])
+ if (!strcmp (volname, "help") && wordcount == 3 )
ret = dict_set_str (dict, "help", volname);
- if (!strcmp (volname, "help-xml") && !words[3] && !words[4])
+ if (!strcmp (volname, "help-xml") && wordcount == 3 )
ret = dict_set_str (dict, "help-xml", volname);
if (ret)