]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Allow loading multiple phutil libraries from command line
authorNick Harper <nharper@fb.com>
Wed, 22 Feb 2012 19:05:50 +0000 (11:05 -0800)
committerNick Harper <nharper@fb.com>
Wed, 22 Feb 2012 20:46:13 +0000 (12:46 -0800)
Summary: see title

Test Plan: loaded multiple libraries

Reviewers: blair, epriestley, jungejason

Reviewed By: epriestley

CC: aran, epriestley
Differential Revision: https://secure.phabricator.com/D1668

scripts/arcanist.php

index 1e84eb3c0e791ddbf10f0d88e0a895c4933cf4c3..3808137e3df5e0b19b742db60d5e8f2e5d4e2a34 100755 (executable)
@@ -50,7 +50,7 @@ foreach ($args as $key => $arg) {
     PhutilConsoleFormatter::disableANSI(true);
   } else if (preg_match('/^--load-phutil-library=(.*)$/', $arg, $matches)) {
     unset($args[$key]);
-    $load['?'] = $matches[1];
+    $load[] = $matches[1];
   } else if (preg_match('/^--conduit-uri=(.*)$/', $arg, $matches)) {
     unset($args[$key]);
     $force_conduit = $matches[1];