#45098 [Opn->Asn]: named constants require long opt

From: Date: Tue, 27 May 2008 07:38:05 +0000
Subject: #45098 [Opn->Asn]: named constants require long opt
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-853@lists.php.net to get a copy of this message
ID: 45098 Updated by: bjori@php.net Reported By: philip@php.net -Status: Open +Status: Assigned Bug Type: Doc Build problem Operating System: Mac PHP Version: Irrelevant Assigned To: gwynne Previous Comments: ------------------------------------------------------------------------ [2008-05-27 07:37:52] bjori@php.net (it is phd --verbose .. not --version :) The real reason is that before PHP5.3 there was no such thing as "optional argument". For the --verbose option it is natural to specify an option, but -v usually doesn't take arguments, but are passed multiple times for more verbosity. We could fix it in 5.3 (optional argument), but then we would need some weird 5.2 BC code and it would be really inconsistent between PHP versions... -Hannes ------------------------------------------------------------------------ [2008-05-26 19:38:54] philip@php.net Description: ------------ Named constants seemingly cannot be used with short options, for example: phd -v VERBOSE_NOVERSION Whereas the following works: phd --version VERBOSE_NOVERSION The difference is confusing, however, maybe there is a good reason. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45098&edit=1

« previous php.doc.bugs (#853) next »