diff options
author | emkael <emkael@tlen.pl> | 2014-10-14 16:44:28 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2014-10-14 16:44:28 +0200 |
commit | 994a7f122776f3833fd51b3f0f4cef1dcfd83d6e (patch) | |
tree | cac2b0c3423532700e00e38882f55f2fdeec5e26 | |
parent | 1dd94935d01370afb9976dd834fb1704735f14fb (diff) |
* command line arguments cleanup
-rwxr-xr-x | dumps/second-a-lap.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/dumps/second-a-lap.py b/dumps/second-a-lap.py index 3d43cde..afc76bc 100755 --- a/dumps/second-a-lap.py +++ b/dumps/second-a-lap.py @@ -67,11 +67,9 @@ def compile(files): if __name__ == "__main__": if len(argv) > 1: if argv[1] == 'fetch' and len(argv) > 2: - url = urlparse.urlparse(argv[2]) - fetch(url.path) + for url in argv[2:]: + fetch(urlparse.urlparse(url).path) elif argv[1] == 'compile': - files = argv[2:] - compile(files) + compile(argv[2:]) else: - url = urlparse.urlparse(argv[1]) - fetch(url.path) + fetch(urlparse.urlparse(argv[1]).path) |