PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Console » Console_Getargs » Bug #3872

Add '--' option to tell Getargs to treat remainder of line as C_G_PARAMS

Details

Request #3872Add '--' option to tell Getargs to treat remainder of line as C_G_PARAMS
Submitted2005-03-18 15:20 UTC
Frompearbugs at deadman dot org
Assignedscottmattocks
StatusWont fix
PackageConsole_Getargs
PHP Version4.3.10
OSDebian
Roadmaps(Not assigned)

Comments

[2005-03-18 15:20 UTC] pearbugs at deadman dot org

Description:
------------
Many GNU applications (and perhaps other UNIX applications) will take a double-minus ('--') as an indicator to stop processing the rest of the string as possible switches. This is useful for deleting files with names like '-somefile':

rm -- -somefile

Any chance of getting this functionality into Console_Getargs ?

Thanks!

Reproduce code:
---------------
N/A

Expected result:
----------------
N/A

Actual result:
--------------
N/A

[2005-04-14 13:07 UTC] pearbugs at deadman dot org

Is there something that I've failed to do? Why nearly two months of silence?

[2005-04-14 13:08 UTC] pearbugs at deadman dot org

er, one month

[2005-04-22 12:32 UTC] pearbugs at deadman dot org

I'm confused. How does the current behavior differ from what I'm requesting? Is the current behavior documented somewhere?

[2005-04-22 14:07 UTC] scott at crisscott dot com

The current behavior and the requested behavior differ in that I cannot say for sure that the hyphen at the begining of -somefile will be ignored.

Unfortunately the behavior has not been properly documented.

Scott Mattocks