From 16ec45c0fc9ad172b66f07a94c64a3a17c111ca0 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Fri, 4 Oct 2019 20:24:53 +1000 Subject: cli_classic: Fix first line of --help to match manpage Make the first line of --help in usage to align with the format of the man page, including fixing any missing options. V.2: Add an extra space. Change-Id: I44f82c6a54fddb54bf268fe6eb22e50acb6025cf Signed-off-by: Edward O'Callaghan Reviewed-on: https://review.coreboot.org/c/flashrom/+/35793 Tested-by: build bot (Jenkins) --- cli_classic.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cli_classic.c b/cli_classic.c index 4844d1dc2..de6ce04b7 100644 --- a/cli_classic.c +++ b/cli_classic.c @@ -35,9 +35,12 @@ static void cli_classic_usage(const char *name) #if CONFIG_PRINT_WIKI == 1 "-z|" #endif - "-p [:] [-c ]\n" - "[-E|(-r|-w|-v) ] [(-l |--ifd) [-i ]...] [-n] [-N] [-f]]\n" - "[-V[V[V]]] [-o ]\n\n", name); + "\n\t-p [:] [-c ]\n" + "\t\t(--flash-name|--flash-size|\n" + "\t\t [-E|(-r|-w|-v) ]\n" + "\t\t [(-l |--ifd| --fmap|--fmap-file ) [-i ]...]\n" + "\t\t [-n] [-N] [-f])]\n" + "\t[-V[V[V]]] [-o ]\n\n", name); printf(" -h | --help print this help text\n" " -R | --version print version (release)\n" -- cgit v1.2.3