I am trying to pass parameters to command line and get the values using getopt()
function. It works fine when I use
php file.php -a arg
But it does not show any value when I use
yiic shell file.php -a arg
I think I am using the incorrect syntax but I didn't get any proper result when I googled for the correct answer. Any help will be appreciated. Thanks in advance!