Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a41106d

Browse files
committed
Fix documentation of initdb --show option
It wasn't in the documentation at all (even though we document all the other debugging-like options). Also, change the --help output to show that it exits after showing, similar to other options.
1 parent ad8877c commit a41106d

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

doc/src/sgml/ref/initdb.sgml

+12
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,18 @@ PostgreSQL documentation
525525
</listitem>
526526
</varlistentry>
527527

528+
<varlistentry id="app-initdb-option-show">
529+
<term><option>-s</option></term>
530+
<term><option>--show</option></term>
531+
<listitem>
532+
<para>
533+
Show internal settings and exit, without doing anything else. This
534+
can be used to debug the <application>initdb</application>
535+
installation.
536+
</para>
537+
</listitem>
538+
</varlistentry>
539+
528540
<varlistentry id="app-initdb-option-sync-method">
529541
<term><option>--sync-method=<replaceable>method</replaceable></option></term>
530542
<listitem>

src/bin/initdb/initdb.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2481,7 +2481,7 @@ usage(const char *progname)
24812481
printf(_(" -n, --no-clean do not clean up after errors\n"));
24822482
printf(_(" -N, --no-sync do not wait for changes to be written safely to disk\n"));
24832483
printf(_(" --no-instructions do not print instructions for next steps\n"));
2484-
printf(_(" -s, --show show internal settings\n"));
2484+
printf(_(" -s, --show show internal settings, then exit\n"));
24852485
printf(_(" --sync-method=METHOD set method for syncing files to disk\n"));
24862486
printf(_(" -S, --sync-only only sync database files to disk, then exit\n"));
24872487
printf(_("\nOther options:\n"));

0 commit comments

Comments
 (0)