We cannot allow ./php -- -i for calling a script named -i because
then we cannot use ./php -- args while parsing from stdin. We can
implement -- only for one thing and that is currently real end of
parameters. The difference to many other programs is that we
came from CGI.

marcus

[marcus@zaphod src]$ php4/sapi/cli/php -h
Usage: php [options] [-f] <file> [args...]
        php [options] -r <code> [args...]
        php [options] [-- args...]

At 22:54 28.03.2002, you wrote:
>On Thu, 28 Mar 2002, Marcus Börger wrote:
> > Nothing is wrong with that. I think your request goes to the dicussion of
> > the last days. There -f had to be used because the execution file should
> > be able to be named -i.
> >
> > ./php -f -i -> ./-i will be executed
> >
> > ./php -i -> this is different :-)
>
>Why not:
>
>./php -- -i
>
>This is the standard, as far as I know, for many programs.
>
>-Andrei
>* It said 'Winmodem' on the box, but I still feel like I lost. *


--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to