#!/usr/bin/env php $value) { switch ($option) { case 'h': case 'help': show_app_usage(); return false; case 'd': case 'dir': case 'directory': $parsed['dir'] = $value; break; case 'o': case 'output': $parsed['output'] = $value; break; case 'i': case 'install': $parsed['install'] = true; } } return $parsed; } $opts = parse_opts(); if (false === parse_opts()) { exit(1); } $path = getcwd(); $builder = new PharLite\Builder($path, $opts); $builder->build();