Stud.IP
trunk Revision
|
Variables | |
$opts = getopt('fhnoc', ['filenames', 'help', 'non-recursive', 'verbose', 'no-color']) | |
if(isset($opts['h'])||isset($opts['help'])) | $args = $_SERVER['argv'] |
$arg_stop = array_search('--', $args) | |
if($arg_stop !==false) elseif(count($opts)) | else |
$verbose = isset($opts['v']) || isset($opts['verbose']) | |
$only_filenames = isset($opts['f']) || isset($opts['filenames']) | |
$recursive = !(isset($opts['n']) || isset($opts['non-recursive'])) | |
$no_colors = isset($opts['c']) || isset($opts['no-color']) | |
$version = null | |
$folders = array_values($args) ?: [] | |
if(count($folders) > 0 &&preg_match('/^\d+\.\d+$/', $folders | $log [0])) |
$log_if | |
$reduce | |
$check | |
$arg_stop = array_search('--', $args) |
if (isset( $opts[ 'h'])||isset( $opts[ 'help'])) $args = $_SERVER['argv'] |
$check |
if (count( $folders)===0) $folders = array_values($args) ?: [] |
if (count( $folders) > 0 &&preg_match('/^\d+\.\d+$/', $folders $log[0])) |
$log_if |
$only_filenames = isset($opts['f']) || isset($opts['filenames']) |
$opts = getopt('fhnoc', ['filenames', 'help', 'non-recursive', 'verbose', 'no-color']) |
$recursive = !(isset($opts['n']) || isset($opts['non-recursive'])) |
$reduce |
$verbose = isset($opts['v']) || isset($opts['verbose']) |
$version = null |