diff options
author | Simson Garfinkel <simsong@acm.org> | 2012-12-08 00:02:13 -0500 |
---|---|---|
committer | Simson Garfinkel <simsong@acm.org> | 2012-12-08 00:02:13 -0500 |
commit | 011f0b17dd06c717966d8147ed66cdb8b0568efe (patch) | |
tree | 6d643a77a52b8b5ef929781a103fa50ac70eacb1 | |
parent | ba821d25b6dba3f466597b82fb9de520e0814299 (diff) |
Allows different username than repro
-rwxr-xr-x | issues.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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...' |