aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Fitzgerald <fitzgen@gmail.com>2010-06-29 19:49:49 -0700
committerNick Fitzgerald <fitzgen@gmail.com>2010-06-29 19:49:49 -0700
commit2db5a687e974b7cf16053e69d0b2fbe3a0554b73 (patch)
tree163483acab76db59700e9e52026efec0d9d7ff99
parente749faee47d844da91a01963f61a0c62a9744148 (diff)
downloadpycco-2db5a687e974b7cf16053e69d0b2fbe3a0554b73.tar.gz
pycco-2db5a687e974b7cf16053e69d0b2fbe3a0554b73.zip
Fixing argv parameter parsing
-rwxr-xr-xbin/pocco3
-rw-r--r--pocco.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/bin/pocco b/bin/pocco
index 61531a4..884d538 100755
--- a/bin/pocco
+++ b/bin/pocco
@@ -4,6 +4,7 @@ import os
import sys
lib = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')
-cmd = 'python ' + os.path.join(lib, 'pocco.py') + " ".join(sys.argv[2:])
+cmd = "python %s %s" % (os.path.join(lib, 'pocco.py'),
+ " ".join(sys.argv[1:]))
print os.popen(cmd).read(),
diff --git a/pocco.py b/pocco.py
index 18065db..559e38b 100644
--- a/pocco.py
+++ b/pocco.py
@@ -174,7 +174,7 @@ highlight_end = "</pre></div>"
# Run the script.
# For each source file passed in as an argument, generate the documentation.
if __name__ == "__main__":
- sources = list(sys.argv)
+ sources = list(sys.argv[1:])
sources.sort()
if sources:
ensure_directory()