From 7974dc348a044044e79b3d7a3997ef75254b0286 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 28 Aug 2019 18:45:39 -0400 Subject: cgpt: improve help text Standardize on the term "blocks" rather than "sectors" as this matches our disk layout configuration files. For cgpt show, split the specific field options out from the -i option. The current text makes it seem like they're always required when using the -i option, and it's not super clear that they only matter when the -i flag is used. BUG=None TEST=CQ passes BRANCH=None Change-Id: Idfd939cfe9501da78e323bc1ce8c1fbf772fbaa9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1773965 Reviewed-by: Julius Werner Commit-Queue: Mike Frysinger Tested-by: Mike Frysinger --- cgpt/cmd_show.c | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to 'cgpt/cmd_show.c') diff --git a/cgpt/cmd_show.c b/cgpt/cmd_show.c index 4d169f5e..ba19315a 100644 --- a/cgpt/cmd_show.c +++ b/cgpt/cmd_show.c @@ -17,27 +17,30 @@ extern const char* progname; static void Usage(void) { printf("\nUsage: %s show [OPTIONS] DRIVE\n\n" - "Display the GPT table\n\n" + "Display the GPT table.\n\n" + "Units are blocks by default.\n\n" "Options:\n" - " -D NUM Size (in bytes) of the disk where partitions reside\n" + " -D NUM Size (in bytes) of the disk where partitions reside;\n" " default 0, meaning partitions and GPT structs are\n" " both on DRIVE\n" " -n Numeric output only\n" " -v Verbose output\n" " -q Quick output\n" - " -i NUM Show specified partition only - pick one of:\n" - " -b beginning sector\n" - " -s partition size\n" - " -t type guid\n" - " -u unique guid\n" - " -l label\n" - " -S Successful flag\n" - " -T Tries flag\n" - " -P Priority flag\n" - " -R Required flag\n" - " -B Legacy Boot flag\n" - " -A raw 16-bit attribute value (bits 48-63)\n" + " -i NUM Show specified partition only\n" " -d Debug output (including invalid headers)\n" + "\n" + "When using -i, specific fields may be displayed using one of:\n" + " -b first block (a.k.a. start of partition)\n" + " -s partition size (in blocks)\n" + " -t type guid\n" + " -u unique guid\n" + " -l label\n" + " -S Successful flag\n" + " -T Tries flag\n" + " -P Priority flag\n" + " -R Required flag\n" + " -B Legacy Boot flag\n" + " -A raw 16-bit attribute value (bits 48-63)\n" "\n", progname); } -- cgit v1.2.1