]> 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 131b6513c58d3a15284462e0f2249e5c1a92c841..1587192b6fb5b9c1532e6af18411fa76dbc44ba4 100755 (executable)
 
 define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
 
-$shortoptions = 'i';
-$longoptions = array('id');
+$shortoptions = 'i::';
+$longoptions = array('id::');
 
-$helptext = <<<END_OF_FACEBOOK_HELP
-Daemon script for pushing new notices to Facebook.
+$helptext = <<<END_OF_OMB_HELP
+Daemon script for pushing new notices to OpenMicroBlogging subscribers.
 
     -i --id           Identity (default none)
 
-END_OF_FACEBOOK_HELP;
+END_OF_OMB_HELP;
 
 require_once INSTALLDIR.'/scripts/commandline.inc';
 
@@ -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) {