Minor tweak to pg_controldata usage information, per suggestion from
authorNeil Conway
Thu, 23 Sep 2004 00:47:44 +0000 (00:47 +0000)
committerNeil Conway
Thu, 23 Sep 2004 00:47:44 +0000 (00:47 +0000)
Dennis Björklund. Also, remove some redundant #include directives.

src/bin/pg_controldata/pg_controldata.c

index 2bfc30f9e6e22c14f67115937a1f2f2eb4a9835e..e8b9c8b677b475e3518941d949a216dea035e2f0 100644 (file)
@@ -6,7 +6,7 @@
  * copyright (c) Oliver Elphick , 2001;
  * licence: BSD
  *
- * $PostgreSQL: pgsql/src/bin/pg_controldata/pg_controldata.c,v 1.19 2004/08/29 05:06:53 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_controldata/pg_controldata.c,v 1.20 2004/09/23 00:47:44 neilc Exp $
  */
 #include "postgres.h"
 
@@ -14,8 +14,6 @@
 #include 
 #include 
 #include 
-#include 
-#include 
 
 #include "catalog/pg_control.h"
 
@@ -30,15 +28,15 @@ usage(const char *progname)
        (
         _(
           "Usage:\n"
-          "  %s [OPTION]\n\n"
+          "  %s [OPTION] [DATADIR]\n\n"
           "Options:\n"
-       "  DATADIR        show cluster control information for DATADIR\n"
           "  --help         show this help, then exit\n"
           "  --version      output version information, then exit\n"
           ),
         progname
        );
-   printf(_("\nIf no data directory is specified, the environment variable PGDATA\nis used.\n\n"));
+   printf(_("\nIf no data directory (DATADIR) is specified, "
+            "the environment variable PGDATA\nis used.\n\n"));
    printf(_("Report bugs to .\n"));
 }