From 6a40ba776477ec6e70a523fd3c5a4122a72c3208 Mon Sep 17 00:00:00 2001
From: Evan Prodromou <evan@controlyourself.ca>
Date: Mon, 22 Jun 2009 15:43:26 -0700
Subject: [PATCH] make enjitqueuehandler use functions and args

---
 scripts/enjitqueuehandler.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/enjitqueuehandler.php b/scripts/enjitqueuehandler.php
index 2418d2d1c5..5091347658 100755
--- a/scripts/enjitqueuehandler.php
+++ b/scripts/enjitqueuehandler.php
@@ -124,6 +124,8 @@ if (have_option('-i')) {
     $id = get_option_value('-i');
 } else if (have_option('--id')) {
     $id = get_option_value('--id');
+} else if (count($args) > 0) {
+    $id = $args[0];
 } else {
     $id = null;
 }
-- 
2.39.5