summaryrefslogtreecommitdiff
path: root/issues.py
diff options
context:
space:
mode:
Diffstat (limited to 'issues.py')
-rwxr-xr-xissues.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/issues.py b/issues.py
index bbb6bce..1a7ff58 100755
--- a/issues.py
+++ b/issues.py
@@ -8,6 +8,7 @@ import optparse
parser = optparse.OptionParser(usage='Usage: %prog [options] sfexport.xml githubuser/repo')
parser.add_option('-s', '--start', dest='start_id', action='store', help='id of first issue to import; useful for aborted runs')
+parser.add_option('-u', '--user', dest='github_user')
opts, args = parser.parse_args()
try:
@@ -17,6 +18,9 @@ except (ValueError, IndexError):
parser.print_help()
sys.exit(1)
+if opts.github_user:
+ github_user = opts.github_user
+
from BeautifulSoup import BeautifulStoneSoup
print 'Parsing XML export...'