]> www.infradead.org Git - mtd-utils.git/commitdiff
flash_{un,}lock: nest optional parameters in help message
authorBrian Norris <computersforpeace@gmail.com>
Thu, 27 Aug 2015 17:58:53 +0000 (10:58 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 11 Nov 2015 22:05:36 +0000 (14:05 -0800)
block count should be nested within the optional offset listing. That
is, we require offset before we accept a block count.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
flash_unlock.c

index 1cc8c2ff2d9bbd916c2340a7634512bba801eb6b..ee8ac890f61c278e3f2b7951ee93dfd773bbf03b 100644 (file)
@@ -28,7 +28,7 @@
 static void usage(int status)
 {
        fprintf(status ? stderr : stdout,
-               "Usage: %s <mtd device> [offset] [block count]\n\n"
+               "Usage: %s <mtd device> [offset [block count]]\n\n"
                "If offset is not specified, it defaults to 0.\n"
                "If block count is not specified, it defaults to all blocks.\n",
                PROGRAM_NAME);