Thread: postgres long options without value

postgres long options without value

From
Peter Eisentraut
Date:
Every so often I find myself trying to write

postgres -D ... --ssl

or

postgres -D ... --debug-print-plan

which fails, because you need to write --ssl=on or
--debug-print-plan=true etc.

Have others had the same experience?  Would it be worth supporting the
case without value to default to on/true?




Re: postgres long options without value

From
Euler Taveira
Date:
On 04-04-2012 17:07, Peter Eisentraut wrote:
> postgres -D ... --debug-print-plan
> 
> which fails, because you need to write --ssl=on or
> --debug-print-plan=true etc.
> 
> Have others had the same experience?  Would it be worth supporting the
> case without value to default to on/true?
> 
Please, don't do it. You can be fooled when we change a parameter default
value (specially if you have it in a script that is used in different
versions) from major versions.


--   Euler Taveira de Oliveira - Timbira       http://www.timbira.com.br/  PostgreSQL: Consultoria, Desenvolvimento,
Suporte24x7 e Treinamento