fix have_options arguments

This commit is contained in:
Evan Prodromou
2009-06-22 16:48:04 -07:00
parent 010d168aaa
commit 3fc2cfb7f8
8 changed files with 27 additions and 27 deletions

View File

@@ -20,8 +20,8 @@
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.
@@ -59,8 +59,8 @@ class FacebookQueueHandler 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) {