You can also used named arguments in cake shells, for example (I've
mixed up the obvious order to stress the fact it doesn't matter):

$> cake Myshell -argtwo "some value" -argone "another value"


and in your Myshell code:

function main() {
  $this->out ( "argone value = " . $this->params['argone'] );
  $this->out ( "argtwo value = " . $this->params['argtwo'] );
}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to