From: Keith Busch Date: Tue, 27 Jun 2017 20:25:16 +0000 (-0400) Subject: Show help for get-ns-id X-Git-Tag: v1.4~36 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=19ba51d2b5fdf55264eb004058b8ce96d742e43e;p=users%2Fsagi%2Fnvme-cli.git Show help for get-ns-id https://github.com/linux-nvme/nvme-cli/pull/196 Signed-off-by: Keith Busch --- diff --git a/nvme.c b/nvme.c index 6a544984..62ddd17f 100644 --- a/nvme.c +++ b/nvme.c @@ -1094,8 +1094,13 @@ static int id_ns(int argc, char **argv, struct command *cmd, struct plugin *plug static int get_ns_id(int argc, char **argv, struct command *cmd, struct plugin *plugin) { int nsid, fd; + const char *desc = "Get namespce ID of a the block device."; - fd = get_dev(argc, argv); + const struct argconfig_commandline_options command_line_options[] = { + {NULL}, + }; + + fd = parse_and_open(argc, argv, desc, command_line_options, NULL, 0); if (fd < 0) return fd; nsid = nvme_get_nsid(fd);