summaryrefslogtreecommitdiff
path: root/scripts/synctwitterfriends.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-06-20 14:58:47 -0700
committerEvan Prodromou <evan@controlyourself.ca>2009-06-20 14:58:47 -0700
commit198afa0a1d61c4db2cf6b66e5801af506462ab9b (patch)
treed42ba4a5afae56af975ebddc784c93be820cbcdb /scripts/synctwitterfriends.php
parent45430d2b3b952dda31d232c2726e5980a7e6e56a (diff)
change scripts to take server and path from commandline
Diffstat (limited to 'scripts/synctwitterfriends.php')
-rwxr-xr-xscripts/synctwitterfriends.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/synctwitterfriends.php b/scripts/synctwitterfriends.php
index bd08ba58d..dea3f9700 100755
--- a/scripts/synctwitterfriends.php
+++ b/scripts/synctwitterfriends.php
@@ -30,6 +30,11 @@ define('LACONICA', true);
// Uncomment this to get useful console output
//define('SCRIPT_DEBUG', true);
+// Preset the server at the command line
+
+$server = ($argc > 1) ? $argv[1] : null;
+$path = ($argc > 2) ? $argv[2] : null;
+
require_once(INSTALLDIR . '/lib/common.php');
// Make a lockfile