Re: [PATCHES] pg_controldata usage

2004-09-22 Thread Neil Conway
On Sun, 2004-09-19 at 01:39, Dennis Bjorklund wrote:
 I think that the DATADIR part being treated as an option is confusing

Patch applied -- thanks!

-Neil



---(end of broadcast)---
TIP 4: Don't 'kill -9' the postmaster


[PATCHES] pg_controldata usage

2004-09-18 Thread Dennis Bjorklund
Today pg_controldata --help gives this usage info:

| Usage:
|   pg_controldata [OPTION]
| 
| Options:
|   DATADIRshow 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.c29 Aug 2004 05:06:53 -  1.19
+++ pg_controldata.c18 Sep 2004 15:35:40 -
@@ -30,15 +30,14 @@
(
 _(
   Usage:\n
-%s [OPTION]\n\n
+%s [OPTION] [DATADIR]\n\n
   Options:\n
- DATADIRshow 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 [EMAIL PROTECTED].\n));
 }

-- 
/Dennis Björklund


---(end of broadcast)---
TIP 6: Have you searched our list archives?

   http://archives.postgresql.org