mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
practracker: pass sys.argv to main() as an argument
This commit is contained in:
parent
301e3f22ef
commit
0260e0f6fc
1 changed files with 3 additions and 3 deletions
|
@ -145,8 +145,8 @@ HEADER="""\
|
||||||
|
|
||||||
""".format(**globals())
|
""".format(**globals())
|
||||||
|
|
||||||
def main():
|
def main(argv):
|
||||||
if (len(sys.argv) != 2):
|
if (len(argv) != 2):
|
||||||
print("Usage:\n\t$ practracker.py <tor topdir>\n\t(e.g. $ practracker.py ~/tor/)")
|
print("Usage:\n\t$ practracker.py <tor topdir>\n\t(e.g. $ practracker.py ~/tor/)")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -180,4 +180,4 @@ See doc/HACKING/HelpfulTools.md for more information on using practracker.\
|
||||||
sys.exit(found_new_issues)
|
sys.exit(found_new_issues)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main(sys.argv)
|
||||||
|
|
Loading…
Add table
Reference in a new issue