mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
practracker: pass sys.argv to main() as an argument
This commit is contained in:
parent
301e3f22ef
commit
0260e0f6fc
@ -145,8 +145,8 @@ HEADER="""\
|
||||
|
||||
""".format(**globals())
|
||||
|
||||
def main():
|
||||
if (len(sys.argv) != 2):
|
||||
def main(argv):
|
||||
if (len(argv) != 2):
|
||||
print("Usage:\n\t$ practracker.py <tor topdir>\n\t(e.g. $ practracker.py ~/tor/)")
|
||||
return
|
||||
|
||||
@ -180,4 +180,4 @@ See doc/HACKING/HelpfulTools.md for more information on using practracker.\
|
||||
sys.exit(found_new_issues)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
main(sys.argv)
|
||||
|
Loading…
Reference in New Issue
Block a user