]> www.infradead.org Git - users/hch/nvme-cli.git/commitdiff
Provide no-binary output format help text
authorKeith Busch <kbusch@kernel.org>
Wed, 25 Sep 2019 17:23:17 +0000 (02:23 +0900)
committerKeith Busch <kbusch@kernel.org>
Wed, 25 Sep 2019 17:23:17 +0000 (02:23 +0900)
The binary output is only for device returned structures. Remove this
help text for the 'list' command.

Signed-off-by: Keith Busch <kbusch@kernel.org>
nvme.c

diff --git a/nvme.c b/nvme.c
index 1cd62f852c35f77179914ed34e660819c48701d8..43000f14ca55fd085e33b319109ab672d1029e35 100644 (file)
--- a/nvme.c
+++ b/nvme.c
@@ -83,6 +83,7 @@ static struct program nvme = {
 
 
 static const char *output_format = "Output format: normal|json|binary";
+static const char *output_format_no_binary = "Output format: normal|json";
 
 const char *conarg_nqn = "nqn";
 const char *conarg_transport = "transport";
@@ -1388,7 +1389,7 @@ static int list(int argc, char **argv, struct command *cmd, struct plugin *plugi
        };
 
        OPT_ARGS(opts) = {
-               OPT_FMT("output-format", 'o', &cfg.output_format, output_format),
+               OPT_FMT("output-format", 'o', &cfg.output_format, output_format_no_binary),
                OPT_FLAG("verbose",      'v', &cfg.verbose,       verbose),
                OPT_END()
        };