Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

henderjon/simple_scan_args

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple_scan_args

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.

usage

$args = simple_scan_args($_SERVER["argv"], array $keys, array $flags);

installation

Using composer "require" : { "henderjon/simple_scan_args": "1.*" }

license

See LICENSE.md for the BSD-3-Clause license.

links