Tweak contrib --help output to match common style
authorPeter Eisentraut
Tue, 8 May 2012 18:55:05 +0000 (21:55 +0300)
committerPeter Eisentraut
Tue, 8 May 2012 18:55:05 +0000 (21:55 +0300)
Placeholders such as OPTION are typically kept in singular.

contrib/oid2name/oid2name.c
contrib/pg_upgrade/option.c
contrib/pgbench/pgbench.c

index 05c06ccc684be1bc9bd4fc1c9fb1659b0d1effc8..c7ba1bd101076425bd4c2d8b167cbcdc007b7030 100644 (file)
@@ -177,7 +177,7 @@ help(const char *progname)
 {
    printf("%s helps examining the file structure used by PostgreSQL.\n\n"
           "Usage:\n"
-          "  %s [OPTIONS]...\n"
+          "  %s [OPTION]...\n"
           "\nOptions:\n"
           "  -d DBNAME    database to connect to\n"
           "  -f FILENODE  show info for table with given file node\n"
index a97be28d92c52795c19f1691f6822287da11bd65..06af6d4278108330d74ebe74051760f445c56509 100644 (file)
@@ -218,7 +218,7 @@ usage(void)
 {
    printf(_("pg_upgrade upgrades a PostgreSQL cluster to a different major version.\n\
 \nUsage:\n\
-  pg_upgrade [OPTIONS]...\n\
+  pg_upgrade [OPTION]...\n\
 \n\
 Options:\n\
   -b, --old-bindir=OLDBINDIR    old cluster executable directory\n\
index 9081f0955ffe720e214706b580c574a8340b274c..2e147d91caf781c5f6eaaa24e707628a8c8c99ff 100644 (file)
@@ -338,7 +338,7 @@ usage(const char *progname)
 {
    printf("%s is a benchmarking tool for PostgreSQL.\n\n"
           "Usage:\n"
-          "  %s [OPTIONS]... [DBNAME]\n"
+          "  %s [OPTION]... [DBNAME]\n"
           "\nInitialization options:\n"
           "  -i           invokes initialization mode\n"
           "  -F NUM       fill factor\n"