summaryrefslogtreecommitdiff
path: root/flash_unlock.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2015-08-27 14:04:18 -0700
committerBrian Norris <computersforpeace@gmail.com>2015-11-11 14:05:36 -0800
commitc446c257406f51691dd289fa58e476c81c8d6ddd (patch)
tree8fb255a8b273d69225483c7e2551519c67a3c30b /flash_unlock.c
parent136ee37a3ec6d91b326b2efbead27c91fc0863b5 (diff)
flash_{un,}lock: document option flags
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'flash_unlock.c')
-rw-r--r--flash_unlock.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/flash_unlock.c b/flash_unlock.c
index 9a24b5f..27e7df1 100644
--- a/flash_unlock.c
+++ b/flash_unlock.c
@@ -29,7 +29,12 @@
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);