simple_scan_args is a CLI function that will parse an array for -flags and -key=value pairs. It supports the following syntax: "-f" "-flag" "-key=value" "-key value". Using one or more dashes has no effect.
$args = simple_scan_args($_SERVER["argv"], array $keys, array $flags);
Using composer "require" : { "henderjon/simple_scan_args": "1.*" }
See LICENSE.md for the BSD-3-Clause license.
- The Packagist archive
- Reading on Semantic Versioning
- Reading onComposer Versioning