From 5c0fcf0f8725b98043a4b18f36e21489375d133a Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 16 Jun 2021 11:04:25 -0400 Subject: crossystem: update --help text Fix styling of earlier sections and link to the CrOS os_config guide. BUG=None TEST=`crossystem --help` looks nice BRANCH=None Signed-off-by: Mike Frysinger Change-Id: I1d5d9b080ee288541619ec4e0e8d550985051558 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2966239 Reviewed-by: Julius Werner --- utility/crossystem.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/utility/crossystem.c b/utility/crossystem.c index 8fdce980..079bf322 100644 --- a/utility/crossystem.c +++ b/utility/crossystem.c @@ -106,7 +106,7 @@ static const int kNameWidth = 23; static void PrintHelp(const char *progname) { const Param *p; - printf("\nUsage:\n" + printf("Usage:\n" " %s [--all]\n" " Prints all parameters with descriptions and current values.\n" " If --all is specified, prints even normally hidden fields.\n" @@ -116,7 +116,7 @@ static void PrintHelp(const char *progname) { " Sets the parameter(s) to the specified value(s).\n" " %s [param1?value1] [param2?value2 [...]]]\n" " Checks if the parameter(s) all contain the specified value(s).\n" - "Stops at the first error." + " Stops at the first error.\n" "\n" "Valid parameters:\n", progname, progname, progname, progname); for (p = sys_param_list; p->name; p++) { @@ -125,6 +125,10 @@ static void PrintHelp(const char *progname) { (p->flags & IS_STRING) ? "str" : "int", p->desc); } + printf("\n" + "For more information, please see:\n" + "https://chromium.googlesource.com/chromiumos/docs/+/HEAD/" + "os_config.md#crossystem\n"); } -- cgit v1.2.1