Commit 827ea23a authored by Andreas Jung's avatar Andreas Jung

provide main()

parent 71b16d45
......@@ -701,7 +701,7 @@ If the --help argument is given, detailed usage docs are provided."""
return usage
if __name__ == '__main__':
def main():
if len(sys.argv) == 1:
print usage()
sys.exit(0)
......@@ -838,3 +838,6 @@ if __name__ == '__main__':
traceback.print_exc()
print usage()
sys.exit(0)
if __name__ == '__main__':
main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment