It's like µ but for CLI!
$a = new λ();
$a->add('--foo=(?<foo>.*) (?<cool>--cool)', function($params) {
if (isset($params['cool'])) {
var_dump($params['foo']);
}
});
$a->run();
Don't use this in production, or really anywhere. It's just for fun. 😄