From: Brian Norris Date: Thu, 27 Aug 2015 17:58:53 +0000 (-0700) Subject: flash_{un,}lock: nest optional parameters in help message X-Git-Tag: v2.0.0-rc1~72 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=075fadd04e3ba4686b9beefb08d50be3242e02bb;p=mtd-utils.git flash_{un,}lock: nest optional parameters in help message 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 --- diff --git a/flash_unlock.c b/flash_unlock.c index 1cc8c2f..ee8ac89 100644 --- a/flash_unlock.c +++ b/flash_unlock.c @@ -28,7 +28,7 @@ static void usage(int status) { fprintf(status ? stderr : stdout, - "Usage: %s [offset] [block count]\n\n" + "Usage: %s [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);