Stud.IP
4.2 Revision
|
Variables | |
$rules | |
$opts = getopt('fhnoc', array('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']) | |
$folders = $args ?: [] | |
$log | |
$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 = $args ?: [] |
$log |
$log_if |
$no_colors = isset($opts['c']) || isset($opts['no-color']) |
$only_filenames = isset($opts['f']) || isset($opts['filenames']) |
$opts = getopt('fhnoc', array('filenames', 'help', 'non-recursive', 'verbose', 'no-color')) |
$recursive = !(isset($opts['n']) || isset($opts['non-recursive'])) |
$reduce |
$rules |
$verbose = isset($opts['v']) || isset($opts['verbose']) |