postgres long options without value

Started by Peter Eisentrautalmost 14 years ago2 messages
#1Peter Eisentraut
peter_e@gmx.net

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?

#2Euler Taveira
euler@timbira.com
In reply to: Peter Eisentraut (#1)
Re: postgres long options without value

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, Suporte 24x7 e Treinamento