summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/src/cli-cmd-volume.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c
index 09f89137445..fdd58c69af0 100644
--- a/cli/src/cli-cmd-volume.c
+++ b/cli/src/cli-cmd-volume.c
@@ -65,6 +65,12 @@ cli_cmd_volume_delete_usage ()
cli_out ("Usage: volume delete <VOLNAME>");
}
+void
+cli_cmd_volume_info_usage ()
+{
+ cli_out ("Usage: volume info [all|<VOLNAME>]");
+}
+
int
cli_cmd_volume_info_cbk (struct cli_state *state, struct cli_cmd_word *word,
const char **words, int wordcount)
@@ -93,6 +99,9 @@ cli_cmd_volume_info_cbk (struct cli_state *state, struct cli_cmd_word *word,
goto out;
}
proc = &cli_rpc_prog->proctable[GF1_CLI_GET_VOLUME];
+ } else {
+ cli_cmd_volume_info_usage ();
+ return -1;
}
local = cli_local_get ();