Re: CLI and -f

From: Date: Fri, 29 Mar 2002 00:00:47 +0000
Subject: Re: CLI and -f
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-81896@lists.php.net to get a copy of this message
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. *


« previous php.dev (#81896) next »