php somescript.php --option=option1 --t=options2 -ds param1 param2
in some script it runs
$args = CMD::parseArgs();
var_dump($args);
// parses as
// array(8) {
// [0]=>
// string(6) "param1"
// [1]=>
// string(6) "param2"
// ["option"]=>
// string(5) "option1"
// ["t"]=>
// string(5) "option2"
// ["d"]=>
// bool(true)
// ["s"]=>
// bool(true)
// }
-
Notifications
You must be signed in to change notification settings - Fork 0
davebarnwell/cmd-php
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
PHP command line arguments handling
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published