Skip to content

Commit a4fd336

Browse files
committed
pg_xlogdump: Improve --help output
1 parent 35d50b5 commit a4fd336

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

contrib/pg_xlogdump/pg_xlogdump.c

+4-5
Original file line numberDiff line numberDiff line change
@@ -381,11 +381,8 @@ usage(void)
381381
printf("%s decodes and displays PostgreSQL transaction logs for debugging.\n\n",
382382
progname);
383383
printf("Usage:\n");
384-
printf(" %s [OPTION] [STARTSEG [ENDSEG]] \n", progname);
385-
printf("\nGeneral options:\n");
386-
printf(" -V, --version output version information, then exit\n");
387-
printf(" -?, --help show this help, then exit\n");
388-
printf("\nContent options:\n");
384+
printf(" %s [OPTION]... [STARTSEG [ENDSEG]] \n", progname);
385+
printf("\nOptions:\n");
389386
printf(" -b, --bkp-details output detailed information about backup blocks\n");
390387
printf(" -e, --end=RECPTR stop reading at log position RECPTR\n");
391388
printf(" -n, --limit=N number of records to display\n");
@@ -396,7 +393,9 @@ usage(void)
396393
printf(" -s, --start=RECPTR start reading at log position RECPTR\n");
397394
printf(" -t, --timeline=TLI timeline from which to read log records\n");
398395
printf(" (default: 1 or the value used in STARTSEG)\n");
396+
printf(" -V, --version output version information, then exit\n");
399397
printf(" -x, --xid=XID only show records with TransactionId XID\n");
398+
printf(" -?, --help show this help, then exit\n");
400399
}
401400

402401
int

0 commit comments

Comments
 (0)