summaryrefslogtreecommitdiff
path: root/dumps/second-a-lap.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2014-10-14 16:44:28 +0200
committeremkael <emkael@tlen.pl>2014-10-14 16:44:28 +0200
commit994a7f122776f3833fd51b3f0f4cef1dcfd83d6e (patch)
treecac2b0c3423532700e00e38882f55f2fdeec5e26 /dumps/second-a-lap.py
parent1dd94935d01370afb9976dd834fb1704735f14fb (diff)
* command line arguments cleanup
Diffstat (limited to 'dumps/second-a-lap.py')
-rwxr-xr-xdumps/second-a-lap.py10
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)