summaryrefslogtreecommitdiffstats
path: root/pyLoadCli.py
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2009-09-02 13:19:43 +0200
committerGravatar spoob <spoob@gmx.de> 2009-09-02 13:19:43 +0200
commit583f139f4411b06edf3b68fc63679a4d9e618346 (patch)
tree7f32d3c09cf90ad68666b6985f1a170b685bca55 /pyLoadCli.py
parentdowntime patch (diff)
downloadpyload-583f139f4411b06edf3b68fc63679a4d9e618346.tar.xz
cleaning
Diffstat (limited to 'pyLoadCli.py')
-rwxr-xr-xpyLoadCli.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/pyLoadCli.py b/pyLoadCli.py
index d01dc2280..2f94fb2ce 100755
--- a/pyLoadCli.py
+++ b/pyLoadCli.py
@@ -18,6 +18,7 @@
#
###
import ConfigParser
+import subprocess
import os
import os.path
import sys
@@ -315,8 +316,8 @@ def white(string):
if __name__ == "__main__":
- if len(sys.argv) == 2:
-
+ if len(sys.argv) > 1:
+
shortOptions = 'l'
longOptions = ['local']
@@ -330,13 +331,16 @@ if __name__ == "__main__":
port = config.get("remote", "port")
password = config.get("remote", "password")
- elif len(sys.argv) != 4:
+ if len(extraparams) == 3:
+ address, port, password = sys.argv[1:4]
+ else:
address = raw_input("Adress:")
port = raw_input("Port:")
password = raw_input("Password:")
- else:
- address, port, password = sys.argv[1:4]
+ print address
+ print port
+ print password
cli = pyLoadCli(address, port, password)