diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-06-22 16:48:04 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-06-22 16:48:04 -0700 |
commit | 3fc2cfb7f81cca483be7255e20245c8fea2fe0d8 (patch) | |
tree | a6cc0881b4b6af69523fb88822f145c1ce7e02d9 /scripts/ombqueuehandler.php | |
parent | 010d168aaa908073d03be66259042f921dfb861e (diff) |
fix have_options arguments
Diffstat (limited to 'scripts/ombqueuehandler.php')
-rwxr-xr-x | scripts/ombqueuehandler.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/ombqueuehandler.php b/scripts/ombqueuehandler.php index deb5f8d7d..1587192b6 100755 --- a/scripts/ombqueuehandler.php +++ b/scripts/ombqueuehandler.php @@ -20,8 +20,8 @@ define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); -$shortoptions = 'i'; -$longoptions = array('id'); +$shortoptions = 'i::'; +$longoptions = array('id::'); $helptext = <<<END_OF_OMB_HELP Daemon script for pushing new notices to OpenMicroBlogging subscribers. @@ -72,8 +72,8 @@ class OmbQueueHandler 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) { |