mirror of
https://github.com/postgres/postgres.git
synced 2025-05-03 22:24:49 +03:00
Minor tweak to pg_controldata usage information, per suggestion from
Dennis Björklund. Also, remove some redundant #include directives.
This commit is contained in:
parent
bca0383f9a
commit
6a84723d7d
@ -6,7 +6,7 @@
|
|||||||
* copyright (c) Oliver Elphick <olly@lfix.co.uk>, 2001;
|
* copyright (c) Oliver Elphick <olly@lfix.co.uk>, 2001;
|
||||||
* licence: BSD
|
* 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"
|
#include "postgres.h"
|
||||||
|
|
||||||
@ -14,8 +14,6 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <locale.h>
|
|
||||||
#include <errno.h>
|
|
||||||
|
|
||||||
#include "catalog/pg_control.h"
|
#include "catalog/pg_control.h"
|
||||||
|
|
||||||
@ -30,15 +28,15 @@ usage(const char *progname)
|
|||||||
(
|
(
|
||||||
_(
|
_(
|
||||||
"Usage:\n"
|
"Usage:\n"
|
||||||
" %s [OPTION]\n\n"
|
" %s [OPTION] [DATADIR]\n\n"
|
||||||
"Options:\n"
|
"Options:\n"
|
||||||
" DATADIR show cluster control information for DATADIR\n"
|
|
||||||
" --help show this help, then exit\n"
|
" --help show this help, then exit\n"
|
||||||
" --version output version information, then exit\n"
|
" --version output version information, then exit\n"
|
||||||
),
|
),
|
||||||
progname
|
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 <pgsql-bugs@postgresql.org>.\n"));
|
printf(_("Report bugs to <pgsql-bugs@postgresql.org>.\n"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user