Review program help output for wording and formatting
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 16 Sep 2015 04:37:39 +0000 (00:37 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 16 Sep 2015 04:37:39 +0000 (00:37 -0400)
src/bin/pg_basebackup/pg_receivexlog.c
src/bin/pg_basebackup/pg_recvlogical.c
src/bin/pg_controldata/pg_controldata.c
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_restore.c
src/bin/pg_resetxlog/pg_resetxlog.c
src/bin/pg_rewind/pg_rewind.c
src/bin/pgbench/pgbench.c
src/bin/psql/help.c
src/bin/scripts/vacuumdb.c

index ca648d9716aa7968b3f067308e3ce3f15932fa9e..0c322d1cd9ec771a0afbaa72b85d56c26f9d7dbf 100644 (file)
@@ -67,7 +67,7 @@ usage(void)
    printf(_("  %s [OPTION]...\n"), progname);
    printf(_("\nOptions:\n"));
    printf(_("  -D, --directory=DIR    receive transaction log files into this directory\n"));
-   printf(_("      --if-not-exists    do not treat naming conflicts as an error when creating a slot\n"));
+   printf(_("      --if-not-exists    do not error if slot already exists when creating a slot\n"));
    printf(_("  -n, --no-loop          do not loop on connection lost\n"));
    printf(_("  -s, --status-interval=SECS\n"
             "                         time between status packets sent to server (default: %d)\n"), (standby_message_timeout / 1000));
index f189f71eff6a14a369a6a5b2893e798cfd1a9753..93f61c359adb8db5cc95260a6fc2354152795fd9 100644 (file)
@@ -76,7 +76,7 @@ usage(void)
    printf(_("  -f, --file=FILE        receive log into this file, - for stdout\n"));
    printf(_("  -F  --fsync-interval=SECS\n"
             "                         time between fsyncs to the output file (default: %d)\n"), (fsync_interval / 1000));
-   printf(_("      --if-not-exists    do not treat naming conflicts as an error when creating a slot\n"));
+   printf(_("      --if-not-exists    do not error if slot already exists when creating a slot\n"));
    printf(_("  -I, --startpos=LSN     where in an existing slot should the streaming start\n"));
    printf(_("  -n, --no-loop          do not loop on connection lost\n"));
    printf(_("  -o, --option=NAME[=VALUE]\n"
index 046480cc28e90ce842cea17613380dc6d56c4a2a..704f72d3c503015b87b4ace48c530896a14f47dd 100644 (file)
@@ -34,8 +34,9 @@ usage(const char *progname)
 {
    printf(_("%s displays control information of a PostgreSQL database cluster.\n\n"), progname);
    printf(_("Usage:\n"));
-   printf(_("  %s [OPTION] [[-D] DATADIR]\n"), progname);
+   printf(_("  %s [OPTION] [DATADIR]\n"), progname);
    printf(_("\nOptions:\n"));
+   printf(_(" [-D] DATADIR    data directory\n"));
    printf(_("  -V, --version  output version information, then exit\n"));
    printf(_("  -?, --help     show this help, then exit\n"));
    printf(_("\nIf no data directory (DATADIR) is specified, "
index 82247252e0d8251147faf670a9bb97bc0e1080d0..25ac911c3ed7077ad604a6acdb74aed386a69ee0 100644 (file)
@@ -893,7 +893,8 @@ help(const char *progname)
    printf(_("  --column-inserts             dump data as INSERT commands with column names\n"));
    printf(_("  --disable-dollar-quoting     disable dollar quoting, use SQL standard quoting\n"));
    printf(_("  --disable-triggers           disable triggers during data-only restore\n"));
-   printf(_("  --enable-row-security        enable row level security\n"));
+   printf(_("  --enable-row-security        enable row security (dump only content user has\n"
+            "                               access to)\n"));
    printf(_("  --exclude-table-data=TABLE   do NOT dump data for the named table(s)\n"));
    printf(_("  --if-exists                  use IF EXISTS when dropping objects\n"));
    printf(_("  --inserts                    dump data as INSERT commands, rather than COPY\n"));
index ec82d0b98d5ca9e2540d36623233ba64439437ef..f7fc4d12389812dfb1e13b740a6cace8930ed787 100644 (file)
@@ -460,7 +460,7 @@ usage(const char *progname)
    printf(_("  -x, --no-privileges          skip restoration of access privileges (grant/revoke)\n"));
    printf(_("  -1, --single-transaction     restore as a single transaction\n"));
    printf(_("  --disable-triggers           disable triggers during data-only restore\n"));
-   printf(_("  --enable-row-security        enable row level security\n"));
+   printf(_("  --enable-row-security        enable row security\n"));
    printf(_("  --if-exists                  use IF EXISTS when dropping objects\n"));
    printf(_("  --no-data-for-failed-tables  do not restore data of tables that could not be\n"
             "                               created\n"));
index 72755b064d51bf17a5bc71a14ff2d6ad172decfa..0657da093189f70860c8e4f386a533cd9a677cf5 100644 (file)
@@ -1165,10 +1165,11 @@ static void
 usage(void)
 {
    printf(_("%s resets the PostgreSQL transaction log.\n\n"), progname);
-   printf(_("Usage:\n  %s [OPTION]... {[-D] DATADIR}\n\n"), progname);
+   printf(_("Usage:\n  %s [OPTION]... DATADIR\n\n"), progname);
    printf(_("Options:\n"));
    printf(_("  -c XID,XID       set oldest and newest transactions bearing commit timestamp\n"));
    printf(_("                   (zero in either value means no change)\n"));
+   printf(_(" [-D] DATADIR      data directory\n"));
    printf(_("  -e XIDEPOCH      set next transaction ID epoch\n"));
    printf(_("  -f               force update to be done\n"));
    printf(_("  -l XLOGFILE      force minimum WAL starting location for new transaction log\n"));
index 032301fc2add62cd70c6a3f6d6cb2a408ef63039..4b7e26aac18f21679cd7429bcca4647122f1d63a 100644 (file)
@@ -60,8 +60,8 @@ usage(const char *progname)
    printf(_("Usage:\n  %s [OPTION]...\n\n"), progname);
    printf(_("Options:\n"));
    printf(_("  -D, --target-pgdata=DIRECTORY  existing data directory to modify\n"));
-   printf(_("      --source-pgdata=DIRECTORY  source data directory to sync with\n"));
-   printf(_("      --source-server=CONNSTR    source server to sync with\n"));
+   printf(_("      --source-pgdata=DIRECTORY  source data directory to synchronize with\n"));
+   printf(_("      --source-server=CONNSTR    source server to synchronize with\n"));
    printf(_("  -n, --dry-run                  stop before modifying anything\n"));
    printf(_("  -P, --progress                 write progress messages\n"));
    printf(_("      --debug                    write a lot of debug messages\n"));
index d48e5b78443edb49251dd2184e6e76155a3f44dc..89559e78da19a4a0676647068cd028b23e0e7984 100644 (file)
@@ -390,8 +390,7 @@ usage(void)
         "  -f, --file=FILENAME      read transaction script from FILENAME\n"
           "  -j, --jobs=NUM           number of threads (default: 1)\n"
           "  -l, --log                write transaction times to log file\n"
-   "  -L, --latency-limit=NUM  count transactions lasting more than NUM ms\n"
-          "                           as late.\n"
+   "  -L, --latency-limit=NUM  count transactions lasting more than NUM ms as late\n"
           "  -M, --protocol=simple|extended|prepared\n"
           "                           protocol for submitting queries (default: simple)\n"
           "  -n, --no-vacuum          do not run VACUUM before tests\n"
index b523054825f5e4fa996198f94d972fbc471a437b..5fb11ed526a5ad38455519198c59ae4fc94ceee3 100644 (file)
@@ -81,14 +81,15 @@ usage(unsigned short int pager)
    fprintf(output, _("  -f, --file=FILENAME      execute commands from file, then exit\n"));
    fprintf(output, _("  -l, --list               list available databases, then exit\n"));
    fprintf(output, _("  -v, --set=, --variable=NAME=VALUE\n"
-                     "                           set psql variable NAME to VALUE e.g.: -v ON_ERROR_STOP=1\n"));
+                     "                           set psql variable NAME to VALUE\n"
+                     "                           (e.g., -v ON_ERROR_STOP=1)\n"));
    fprintf(output, _("  -V, --version            output version information, then exit\n"));
    fprintf(output, _("  -X, --no-psqlrc          do not read startup file (~/.psqlrc)\n"));
    fprintf(output, _("  -1 (\"one\"), --single-transaction\n"
                      "                           execute as a single transaction (if non-interactive)\n"));
    fprintf(output, _("  -?, --help[=options]     show this help, then exit\n"));
-   fprintf(output, _("      --help=variables     show a list of all specially treated variables, then exit\n"));
-   fprintf(output, _("      --help=commands      show a list of backslash commands, then exit\n"));
+   fprintf(output, _("      --help=commands      list backslash commands, then exit\n"));
+   fprintf(output, _("      --help=variables     list special variables, then exit\n"));
 
    fprintf(output, _("\nInput and output options:\n"));
    fprintf(output, _("  -a, --echo-all           echo all input from script\n"));
index f0dc6a7bd5dd7f0cb92d5399386d4b0f347d12df..4ce27b78c54b13cadb6729f74af159ba0def2a5e 100644 (file)
@@ -936,15 +936,15 @@ help(const char *progname)
    printf(_("  -e, --echo                      show the commands being sent to the server\n"));
    printf(_("  -f, --full                      do full vacuuming\n"));
    printf(_("  -F, --freeze                    freeze row transaction information\n"));
+   printf(_("  -j, --jobs=NUM                  use this many concurrent connections to vacuum\n"));
    printf(_("  -q, --quiet                     don't write any messages\n"));
    printf(_("  -t, --table='TABLE[(COLUMNS)]'  vacuum specific table(s) only\n"));
    printf(_("  -v, --verbose                   write a lot of output\n"));
    printf(_("  -V, --version                   output version information, then exit\n"));
    printf(_("  -z, --analyze                   update optimizer statistics\n"));
-   printf(_("  -Z, --analyze-only              only update optimizer statistics;  no vacuum\n"));
-   printf(_("  -j, --jobs=NUM                  use this many concurrent connections to vacuum\n"));
+   printf(_("  -Z, --analyze-only              only update optimizer statistics; no vacuum\n"));
    printf(_("      --analyze-in-stages         only update optimizer statistics, in multiple\n"
-            "                                  stages for faster results;  no vacuum\n"));
+            "                                  stages for faster results; no vacuum\n"));
    printf(_("  -?, --help                      show this help, then exit\n"));
    printf(_("\nConnection options:\n"));
    printf(_("  -h, --host=HOSTNAME       database server host or socket directory\n"));