diff options
Diffstat (limited to 'tupkg/client')
-rwxr-xr-x | tupkg/client/tupkg | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/tupkg/client/tupkg b/tupkg/client/tupkg index 4c0da4e..14eb1c0 100755 --- a/tupkg/client/tupkg +++ b/tupkg/client/tupkg @@ -121,14 +121,16 @@ def main(argv=None): usage() return 1 - try: - fil = ClientFile(argv[1]) - except IOError, err: - print "Error: " + err.strerror + ": '" + err.filename + "'" - usage() - return 1 + files = [] + for i in argv[1:]: + try: + files.append(ClientFile(i)) + except IOError, err: + print "Error: " + err.strerror + ": '" + err.filename + "'" + usage() + return 1 - cs = ClientSocket([fil], 'localhost', 1034, "bfinch@example.net", "B0b") + cs = ClientSocket(files, 'localhost', 1034, "bfinch@example.net", "B0b") cs.connect() if not cs.auth(): |