Re:Build command line apps using PHP 7
by terminalcommand on Sunday September 03, 2017 @06:19PM
(#15164283)
I haven't used PHP for CLI scripting, however I've used Python and Golang. I can say that Golang argument library (flag) feels more straightforward to me than Python's argparse.
vs
In the Go example you get a pointer just like in C, in the python example you get a special object and can access its fields. Both are simple, but Golang is IMHO closer to C in this matter.
[ Parent
| on HN ]