]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme: Simplify virt-mgmt options to lowercase
authorMinwoo Im <minwoo.im.dev@gmail.com>
Sun, 7 Apr 2019 10:32:53 +0000 (19:32 +0900)
committerMinwoo Im <minwoo.im.dev@gmail.com>
Sun, 7 Apr 2019 10:32:53 +0000 (19:32 +0900)
All the other subcommand options are supported with lowercase, but
virt-mgmt subcommand has long argument name started with uppercase.
This can be simplified to a lowercase with being the same with the names
on spec document.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
nvme.c

diff --git a/nvme.c b/nvme.c
index 6dc51969d415d84999b348065821aa0a2c7999c4..8bc4ea5f964ca499a8bf683cd19d7cd8b008ce6f 100644 (file)
--- a/nvme.c
+++ b/nvme.c
@@ -2239,10 +2239,10 @@ static int virtual_mgmt(int argc, char **argv, struct command *cmd, struct plugi
        };
 
        const struct argconfig_commandline_options command_line_options[] = {
-               {"Controller-identifier",          'c', "NUM", CFG_POSITIVE, &cfg.cntlid, required_argument, cntlid},
-               {"Resource-type",                  'r', "NUM", CFG_POSITIVE, &cfg.rt,     required_argument, rt},
-               {"Action",                         'a', "NUM", CFG_POSITIVE, &cfg.act,    required_argument, act},
-               {"Number-of-controller-resources", 'n', "NUM", CFG_POSITIVE, &cfg.cdw11,  required_argument, nr},
+               {"cntlid",      'c', "NUM", CFG_POSITIVE, &cfg.cntlid, required_argument, cntlid},
+               {"rt",          'r', "NUM", CFG_POSITIVE, &cfg.rt,     required_argument, rt},
+               {"act",         'a', "NUM", CFG_POSITIVE, &cfg.act,    required_argument, act},
+               {"nr",          'n', "NUM", CFG_POSITIVE, &cfg.cdw11,  required_argument, nr},
                {NULL}
        };