]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/ombqueuehandler.php
Improve url finding more. Properly end urls when a space is caught.
[quix0rs-gnu-social.git] / scripts / ombqueuehandler.php
index deb5f8d7d29dd5be7568c4307b52ff4d63cd9722..1587192b6fb5b9c1532e6af18411fa76dbc44ba4 100755 (executable)
@@ -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) {