]> www.infradead.org Git - mtd-utils.git/commitdiff
flash_{un,}lock: document option flags
authorBrian Norris <computersforpeace@gmail.com>
Thu, 27 Aug 2015 21:04:18 +0000 (14:04 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 11 Nov 2015 22:05:36 +0000 (14:05 -0800)
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
flash_unlock.c

index 9a24b5f796e0481bd967ef5333aac01bb7ef7514..27e7df1eac3fc4630e7629f7ca2e42b333ffa22f 100644 (file)
 static void usage(int status)
 {
        fprintf(status ? stderr : stdout,
-               "Usage: %s <mtd device> [offset [block count]]\n\n"
+               "Usage: %s [options] [--] <mtd device> [offset [block count]]\n"
+               "\n"
+               "Options:\n"
+               " -h         --help              Display this help and exit\n"
+               "            --version           Display version information and exit\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);