summaryrefslogtreecommitdiff
path: root/scripts/pingqueuehandler.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-06-22 16:48:04 -0700
committerEvan Prodromou <evan@controlyourself.ca>2009-06-22 16:48:04 -0700
commit3fc2cfb7f81cca483be7255e20245c8fea2fe0d8 (patch)
treea6cc0881b4b6af69523fb88822f145c1ce7e02d9 /scripts/pingqueuehandler.php
parent010d168aaa908073d03be66259042f921dfb861e (diff)
fix have_options arguments
Diffstat (limited to 'scripts/pingqueuehandler.php')
-rw-r--r--scripts/pingqueuehandler.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/pingqueuehandler.php b/scripts/pingqueuehandler.php
index 1bde4bc5f..23678ea4b 100644
--- a/scripts/pingqueuehandler.php
+++ b/scripts/pingqueuehandler.php
@@ -20,8 +20,8 @@
define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
-$shortoptions = 'i';
-$longoptions = array('id');
+$shortoptions = 'i::';
+$longoptions = array('id::');
$helptext = <<<END_OF_PING_HELP
Daemon script for pushing new notices to ping servers.
@@ -54,8 +54,8 @@ class PingQueueHandler extends QueueHandler {
}
}
-if (have_option('-i')) {
- $id = get_option_value('-i');
+if (have_option('i')) {
+ $id = get_option_value('i');
} else if (have_option('--id')) {
$id = get_option_value('--id');
} else if (count($args) > 0) {