pg_regress --help missing description of --bindir

Started by Michael Paquierover 10 years ago3 messagesbugs
Jump to latest
#1Michael Paquier
michael@paquier.xyz

Hi all,

I just bumped into the issue defined in $subject.
Attached is a patch.
Regards,
--
Michael

Attachments:

pgregress_help.patchapplication/x-patch; name=pgregress_help.patchDownload+2-0
#2Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Michael Paquier (#1)
Re: pg_regress --help missing description of --bindir

Michael Paquier wrote:

Hi all,

I just bumped into the issue defined in $subject.
Attached is a patch.

I don't understand the parenthical remark. Do you mean that if you pass
"--bindir" without an argument it uses PATH? That would be weird; but
if that's how it works, then it should look like --bindir[=DIR]. If you
don't mean that, then I think the proposed wording is confusing. Maybe
"PATH is searched if this option not given"?

--
�lvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

#3Michael Paquier
michael@paquier.xyz
In reply to: Alvaro Herrera (#2)
Re: pg_regress --help missing description of --bindir

On Thu, Jan 7, 2016 at 4:53 AM, Alvaro Herrera <alvherre@2ndquadrant.com> wrote:

Michael Paquier wrote:

Hi all,

I just bumped into the issue defined in $subject.
Attached is a patch.

I don't understand the parenthical remark. Do you mean that if you pass
"--bindir" without an argument it uses PATH? That would be weird; but
if that's how it works, then it should look like --bindir[=DIR].

From pg_regress.c:
/* "--bindir=" means to use PATH */
if (strlen(optarg))
bindir = strdup(optarg);
else
bindir = NULL;
break;

If you
don't mean that, then I think the proposed wording is confusing. Maybe
"PATH is searched if this option not given"?

That's trickier. PGBINDIR is used if this option is not given :)
Do you prefer the attached?
--
Michael

Attachments:

pgregress_help_v2.patchapplication/x-patch; name=pgregress_help_v2.patchDownload+3-0