From 8ba18e2795d3d422b2fd278fdd7e2d29a7cce497 Mon Sep 17 00:00:00 2001 From: Andreas Hindborg Date: Wed, 15 Sep 2021 18:35:13 +0000 Subject: [PATCH] Remove unused command line argument for `nvme list` Remove the `--directory` argument for `nvme list`. The option has been without effect since nvme-cli moved to libnvme. Signed-off-by: Andreas Hindborg --- nvme.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/nvme.c b/nvme.c index 79605f5f..c96d542b 100644 --- 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() -- 2.50.1