Put new command-line options into alphabetical order in help output
authorPeter Eisentraut
Fri, 1 May 2020 09:49:52 +0000 (11:49 +0200)
committerPeter Eisentraut
Fri, 1 May 2020 09:49:52 +0000 (11:49 +0200)
src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_rewind/pg_rewind.c
src/bin/pgbench/pgbench.c
src/bin/scripts/dropdb.c

index c1d3d8624bf324da367405fa5a03e5b7d4a4ccf8..2e9035d6137a2cca9d45c1ebfb1780f9ca6c6190 100644 (file)
@@ -404,15 +404,15 @@ usage(void)
    printf(_("  -S, --slot=SLOTNAME    replication slot to use\n"));
    printf(_("  -v, --verbose          output verbose messages\n"));
    printf(_("  -V, --version          output version information, then exit\n"));
+   printf(_("      --manifest-checksums=SHA{224,256,384,512}|CRC32C|NONE\n"
+            "                         use algorithm for manifest checksums\n"));
+   printf(_("      --manifest-force-encode\n"
+            "                         hex encode all file names in manifest\n"));
+   printf(_("      --no-estimate-size do not estimate backup size in server side\n"));
+   printf(_("      --no-manifest      suppress generation of backup manifest\n"));
    printf(_("      --no-slot          prevent creation of temporary replication slot\n"));
    printf(_("      --no-verify-checksums\n"
             "                         do not verify checksums\n"));
-   printf(_("      --no-estimate-size do not estimate backup size in server side\n"));
-   printf(_("      --no-manifest      suppress generation of backup manifest\n"));
-   printf(_("      --manifest-force-encode\n"
-            "                         hex encode all filenames in manifest\n"));
-   printf(_("      --manifest-checksums=SHA{224,256,384,512}|CRC32C|NONE\n"
-            "                         use algorithm for manifest checksums\n"));
    printf(_("  -?, --help             show this help, then exit\n"));
    printf(_("\nConnection options:\n"));
    printf(_("  -d, --dbname=CONNSTR   connection string\n"));
index eb030aa474c7422e7f92da1b8c7fe4e250e84c3f..ca9e50d4d0c9e11959181ca7406b823232d0f36d 100644 (file)
@@ -78,19 +78,19 @@ usage(const char *progname)
    printf(_("%s resynchronizes a PostgreSQL cluster with another copy of the cluster.\n\n"), progname);
    printf(_("Usage:\n  %s [OPTION]...\n\n"), progname);
    printf(_("Options:\n"));
-   printf(_("  -c, --restore-target-wal       use restore_command in target config\n"
-            "                                 to retrieve WAL files from archives\n"));
+   printf(_("  -c, --restore-target-wal       use restore_command in target configuration to\n"
+            "                                 retrieve WAL files from archives\n"));
    printf(_("  -D, --target-pgdata=DIRECTORY  existing data directory to modify\n"));
    printf(_("      --source-pgdata=DIRECTORY  source data directory to synchronize with\n"));
    printf(_("      --source-server=CONNSTR    source server to synchronize with\n"));
-   printf(_("  -R, --write-recovery-conf      write configuration for replication\n"
-            "                                 (requires --source-server)\n"));
    printf(_("  -n, --dry-run                  stop before modifying anything\n"));
    printf(_("  -N, --no-sync                  do not wait for changes to be written\n"
             "                                 safely to disk\n"));
    printf(_("  -P, --progress                 write progress messages\n"));
-   printf(_("      --no-ensure-shutdown       do not automatically fix unclean shutdown\n"));
+   printf(_("  -R, --write-recovery-conf      write configuration for replication\n"
+            "                                 (requires --source-server)\n"));
    printf(_("      --debug                    write a lot of debug messages\n"));
+   printf(_("      --no-ensure-shutdown       do not automatically fix unclean shutdown\n"));
    printf(_("  -V, --version                  output version information, then exit\n"));
    printf(_("  -?, --help                     show this help, then exit\n"));
    printf(_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT);
index e99af8016752dccbe73a7bf427a93351c112f1e5..ef8ef447f6624a39d341cf074ec76f8d5e028865 100644 (file)
@@ -638,9 +638,9 @@ usage(void)
           "  --foreign-keys           create foreign key constraints between tables\n"
           "  --index-tablespace=TABLESPACE\n"
           "                           create indexes in the specified tablespace\n"
-          "  --partitions=NUM         partition pgbench_accounts in NUM parts (default: 0)\n"
           "  --partition-method=(range|hash)\n"
           "                           partition pgbench_accounts with this method (default: range)\n"
+          "  --partitions=NUM         partition pgbench_accounts into NUM parts (default: 0)\n"
           "  --tablespace=TABLESPACE  create tables in the specified tablespace\n"
           "  --unlogged-tables        create tables as unlogged tables\n"
           "\nOptions to select what to run:\n"
index 3d6be80ffdc037ca44b1340140b321ff9290cd24..581c7749c86a14642840806d0b0f48c1a123c859 100644 (file)
@@ -165,8 +165,8 @@ help(const char *progname)
    printf(_("  %s [OPTION]... DBNAME\n"), progname);
    printf(_("\nOptions:\n"));
    printf(_("  -e, --echo                show the commands being sent to the server\n"));
-   printf(_("  -i, --interactive         prompt before deleting anything\n"));
    printf(_("  -f, --force               try to terminate other connections before dropping\n"));
+   printf(_("  -i, --interactive         prompt before deleting anything\n"));
    printf(_("  -V, --version             output version information, then exit\n"));
    printf(_("  --if-exists               don't report error if database doesn't exist\n"));
    printf(_("  -?, --help                show this help, then exit\n"));