#!/usr/bin/env php $ids]); } else { print_cli("USAGE: $scriptname -a alert_entry_id [-d debug] $scriptname -c contact_id [-r] [-s] [-d debug] ", 'color'); $arguments = new Arguments(); $arguments -> addFlag('-d', 'Turn on debug output'); $arguments -> addFlag('-dd', 'More verbose debug output'); $arguments -> addOption('-a', [ 'default' => '', 'description' => 'Send test notification to for an alert entry']); $arguments -> addOption('-c', [ 'default' => '', 'description' => 'Send test notification to this contact id']); $arguments -> addFlag('-r', 'With -c option, send RECOVER notification instead ALERT'); $arguments -> addFlag('-s', 'With -c option, send SYSLOG notification'); echo $arguments -> getHelpScreen(); echo PHP_EOL . PHP_EOL; } // EOF