File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change 6
6
* copyright (c) Oliver Elphick <olly@lfix.co.uk>, 2001;
7
7
* licence: BSD
8
8
*
9
- * $Header: /cvsroot/pgsql/src/bin/pg_controldata/pg_controldata.c,v 1.7 2002/10/18 22:05:35 petere Exp $
9
+ * $Header: /cvsroot/pgsql/src/bin/pg_controldata/pg_controldata.c,v 1.8 2003/01/08 22:26:34 momjian Exp $
10
10
*/
11
11
#include "postgres.h"
12
12
25
25
static void
26
26
usage (const char * progname )
27
27
{
28
- printf (_ ("%s displays PostgreSQL database cluster control information.\n\n" ), progname );
29
- printf (_ ("Usage:\n %s [DATADIR]\n\n" ), progname );
30
- printf (_ ("If not data directory is specified, the environment variable PGDATA\nis used.\n\n" ));
28
+ printf
29
+ (
30
+ _ (
31
+ "Usage:\n"
32
+ " %s [OPTION]\n\n"
33
+ "Options:\n"
34
+ " DATADIR show cluster control information for DATADIR\n"
35
+ " -?, --help display this help and exit\n"
36
+ " -V, --version display pg_controldata's version and exit\n\n"
37
+ ),
38
+ progname
39
+ );
40
+ printf (_ ("%s displays PostgreSQL database cluster control information.\n" ), progname );
41
+ printf (_ ("If no data directory is specified, the environment variable PGDATA\nis used.\n\n" ));
31
42
printf (_ ("Report bugs to <pgsql-bugs@postgresql.org>.\n" ));
32
43
}
33
44
@@ -97,6 +108,7 @@ main(int argc, char *argv[])
97
108
if (DataDir == NULL )
98
109
{
99
110
fprintf (stderr , _ ("%s: no data directory specified\n" ), progname );
111
+ fprintf (stderr , _ ("Try '%s --help' for more information.\n" ), progname );
100
112
exit (1 );
101
113
}
102
114
You can’t perform that action at this time.
0 commit comments