[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-bugs
Subject:    [DOC-BUGS] #45098 [Csd]: named constants require long opt
From:       bjori () php ! net
Date:       2009-12-26 11:02:53
Message-ID: 200912261102.nBQB2rOf098968 () y1 ! php ! net
[Download RAW message or body]

 ID:               45098
 Updated by:       bjori@php.net
 Reported By:      philip@php.net
 Status:           Closed
 Bug Type:         Doc Build problem
 Operating System: Mac
 PHP Version:      Irrelevant
 New Comment:

Note though: This is optional argument.
Optional arguments to shortops are -arg=value


phd -v=VERBOSE_INFO ...


Previous Comments:
------------------------------------------------------------------------

[2009-12-26 11:02:07] bjori@php.net

This bug has been fixed in SVN. Since the websites are not directly
updated from the SVN server, the fix might need some time to spread
across the globe to all mirror sites, including PHP.net itself.

Thank you for the report, and for helping us make PHP.net better.



------------------------------------------------------------------------

[2009-12-26 11:01:56] svn@php.net

Automatic comment from SVN on behalf of bjori
Revision: http://svn.php.net/viewvc/?view=revision&revision=292638
Log: Fixed bug#45098 (named constants require long opt)

------------------------------------------------------------------------

[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


-- 
PHP Documentation Bugs Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic