Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Cozumel
· 9y ago · 0 comments
..but why? PHP can do all of this out of the box.
Comments
[–]
webNeat
9y ago
Can you define and parse command line arguments that easy using raw PHP ?
[–]
wmichelin
9y ago
Yes.
http://php.net/manual/en/reserved.variables.argv.php
[–]
TazeTSchnitzel
9y ago
https://php.net/getopt
[–]
webNeat
9y ago
I know this one, but it's not as powerful as using something like
https://github.com/tarsana/syntax
, especially if the arguments are very complicated like here
https://github.com/webNeat/lumen-generators#resource-generat...
and need validation.