CakePHP 3 Shell arguments and options

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

CakePHP 3 Shell arguments and options

Martina Weinzettelova
Hello

I cant find in docummentation how can i access passed argumet and options in shell function.

bin/cake myshell function --option value

How can i read --option ???

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: CakePHP 3 Shell arguments and options

euromark
See the existing core shells for details.
They use it quite a bit.

Tip: ConsoleOptionParser

Mark


Am Dienstag, 22. Dezember 2015 11:39:13 UTC+1 schrieb Martina Weinzettelova:
Hello

I cant find in docummentation how can i access passed argumet and options in shell function.

bin/cake myshell function --option value

How can i read --option ???

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.