summaryrefslogtreecommitdiff
path: root/cgpt/cmd_show.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgpt/cmd_show.c')
-rw-r--r--cgpt/cmd_show.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/cgpt/cmd_show.c b/cgpt/cmd_show.c
index 6443931f..fa0e5f8b 100644
--- a/cgpt/cmd_show.c
+++ b/cgpt/cmd_show.c
@@ -28,6 +28,7 @@ static void Usage(void)
" -T Tries flag\n"
" -P Priority flag\n"
" -A raw 64-bit attribute value\n"
+ " -d Debug output (including invalid headers)\n"
"\n", progname);
}
@@ -40,7 +41,7 @@ int cmd_show(int argc, char *argv[]) {
char *e = 0;
opterr = 0; // quiet, you
- while ((c=getopt(argc, argv, ":hnvqi:bstulSTPA")) != -1)
+ while ((c=getopt(argc, argv, ":hnvqi:bstulSTPAd")) != -1)
{
switch (c)
{
@@ -73,6 +74,10 @@ int cmd_show(int argc, char *argv[]) {
params.single_item = c;
break;
+ case 'd':
+ params.debug = 1;
+ break;
+
case 'h':
Usage();
return CGPT_OK;