summaryrefslogtreecommitdiff
path: root/cgpt/cmd_show.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@chromium.org>2019-08-28 18:45:39 -0400
committerCommit Bot <commit-bot@chromium.org>2019-08-29 23:21:44 +0000
commit7974dc348a044044e79b3d7a3997ef75254b0286 (patch)
tree0634868686cd74be892db7b4828bf8c998f57ca2 /cgpt/cmd_show.c
parent31bda282648dd662b1f9c7c8cb8c2dfc8ca27585 (diff)
downloadvboot-7974dc348a044044e79b3d7a3997ef75254b0286.tar.gz
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 <jwerner@chromium.org> Commit-Queue: Mike Frysinger <vapier@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org>
Diffstat (limited to 'cgpt/cmd_show.c')
-rw-r--r--cgpt/cmd_show.c31
1 files changed, 17 insertions, 14 deletions
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);
}