]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
Remove unused command line argument for `nvme list`
authorAndreas Hindborg <andreas.hindborg@wdc.com>
Wed, 15 Sep 2021 18:35:13 +0000 (18:35 +0000)
committerKeith Busch <kbusch@kernel.org>
Thu, 16 Sep 2021 02:47:33 +0000 (20:47 -0600)
Remove the `--directory` argument for `nvme list`. The option has been without
effect since nvme-cli moved to libnvme.

Signed-off-by: Andreas Hindborg <andreas.hindborg@wdc.com>
nvme.c

diff --git a/nvme.c b/nvme.c
index 79605f5f539d7e1479e683b5c00882edd9659ac6..c96d542bda32e3f2addd15ee97333de28a03fbf0 100644 (file)
--- a/nvme.c
+++ b/nvme.c
@@ -1813,26 +1813,22 @@ ret:
 static int list(int argc, char **argv, struct command *cmd, struct plugin *plugin)
 {
        const char *desc = "Retrieve basic information for all NVMe namespaces";
-       const char *device_dir = "Additional directory to search for devices";
        const char *verbose = "Increase output verbosity";
        enum nvme_print_flags flags;
        nvme_root_t r;
        int err = 0;
 
        struct config {
-               char *device_dir;
                char *output_format;
                int verbose;
        };
 
        struct config cfg = {
-               .device_dir = NULL,
                .output_format = "normal",
                .verbose = 0,
        };
 
        OPT_ARGS(opts) = {
-               OPT_STRING("directory",  'd', "DIR",             &cfg.device_dir, device_dir),
                OPT_FMT("output-format", 'o', &cfg.output_format, output_format_no_binary),
                OPT_FLAG("verbose",      'v', &cfg.verbose,       verbose),
                OPT_END()