pg_controldata usage

From: Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>
To: pgsql-patches(at)postgresql(dot)org
Subject: pg_controldata usage
Date: 2004-09-18 15:39:15
Message-ID: Pine.LNX.4.44.0409181732110.9559-100000@zigo.dhs.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Today "pg_controldata --help" gives this usage info:

| Usage:
| pg_controldata [OPTION]
|
| Options:
| DATADIR show cluster control information for DATADIR
| --help show this help, then exit
| --version output version information, then exit
|
| If no data directory is specified, the environment variable PGDATA
| is used.

I think that the DATADIR part being treated as an option is confusing and
would like to change it to:

| Usage:
| pg_controldata [OPTION] [DATADIR]
|
| Options:
| --help show this help, then exit
| --version output version information, then exit
|
| If no data directory (DATADIR) is specified, the environment variable
| PGDATA is used.

Any opinions?

The patch in itself is trivial, but since this is -patches, here it is:

--- pg_controldata.c 29 Aug 2004 05:06:53 -0000 1.19
+++ pg_controldata.c 18 Sep 2004 15:35:40 -0000
@@ -30,15 +30,14 @@
(
_(
"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\nPGDATA is used.\n\n"));
printf(_("Report bugs to <pgsql-bugs(at)postgresql(dot)org>.\n"));
}

--
/Dennis Björklund

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message David Wheeler 2004-09-18 17:28:54 Re: libpq and prepared statements progress for 8.0
Previous Message Tom Lane 2004-09-18 14:46:53 Re: log rotatoin doc updates