5 $baseDir = dirname(dirname(dirname(dirname(__FILE__))));
8 require_once(
$baseDir .
'/lib/_autoload.php');
19 foreach(
$argv as $a) {
20 if (strlen($a) === 0) {
23 if (strpos($a,
'=') !==
false) {
25 $v = substr($a, $p + 1);
26 $a = substr($a, 0, $p);
32 $shortOptMap = array(
'-d' =>
'--debug');
33 if (array_key_exists($a, $shortOptMap)) {
34 $a = $shortOptMap[$a];
47 echo(
'Unknown option: ' . $a .
"\n");
48 echo(
'Please run `' .
$progName .
' --help` for usage information.' .
"\n");
63 foreach (
$results AS $slot => $val) {
64 foreach ($val AS $sp => $no) {
65 echo $sp .
" " . count($no) .
" - ";
79 Usage: $progName [options]
84 -d, --debug Used when configuring
the log file syntax. See doc.
85 --dry-
run Aggregate but
do not store
the results.
foreach($argv as $a) $aggregator
if(! $dryrun) foreach($results AS $slot=> $val) printHelp()
This function prints the help output.
static initTimezone()
Initialize the timezone.
static setConfigDir($path, $configSet='simplesaml')
Set the directory for configuration files for the given configuration set.
Temporary autoloader to ensure compatibility with old, non-PSR-2 compliant classes.