summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/src/cli-cmd-volume.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c
index e1b27ba94b5..1b9f0af7833 100644
--- a/cli/src/cli-cmd-volume.c
+++ b/cli/src/cli-cmd-volume.c
@@ -1060,7 +1060,7 @@ cli_cmd_volume_tier_cbk (struct cli_state *state,
if (wordcount < 4) {
cli_usage_out (word->pattern);
- if (!strcmp(words[2], "help"))
+ if (wordcount == 3 && !strcmp(words[2], "help"))
ret = 0;
goto out;
}