]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme: Update help text for --force
authorDaniel Wagner <dwagner@suse.de>
Tue, 15 Feb 2022 15:05:32 +0000 (16:05 +0100)
committerDaniel Wagner <dwagner@suse.de>
Tue, 15 Feb 2022 15:05:32 +0000 (16:05 +0100)
The short flag version --force has been removed in
90592d5188fe ("nvme: Consolidate --force option and udpate
documetation") but the help text didn't get updated.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
nvme.c

diff --git a/nvme.c b/nvme.c
index 9b5b6d15dc15f89d43b5fe62bf5cc2ce68d55f8e..7d32eac11c8abd75aef9de6dfc65b210f4c92ea3 100644 (file)
--- a/nvme.c
+++ b/nvme.c
@@ -4524,7 +4524,7 @@ static int format(int argc, char **argv, struct command *cmd, struct plugin *plu
                                "Namespace is currently busy.\n");
                        if (!cfg.force)
                                fprintf(stderr,
-                               "Use the force [--force|-f] option to ignore that.\n");
+                               "Use the force [--force] option to ignore that.\n");
                } else {
                        argconfig_print_help(desc, opts);
                }
@@ -4647,7 +4647,7 @@ static int format(int argc, char **argv, struct command *cmd, struct plugin *plu
                nvme_show_relatives(devicename);
                fprintf(stderr, "WARNING: Format may irrevocably delete this device's data.\n"
                        "You have 10 seconds to press Ctrl-C to cancel this operation.\n\n"
-                       "Use the force [--force|-f] option to suppress this warning.\n");
+                       "Use the force [--force] option to suppress this warning.\n");
                sleep(10);
                fprintf(stderr, "Sending format operation ... \n");
        }